diff options
| author | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 18:28:14 -0800 |
|---|---|---|
| committer | The Android Open Source Project <initial-contribution@android.com> | 2009-03-03 18:28:14 -0800 |
| commit | f72d5de56a522ac3be03873bdde26f23a5eeeb3c (patch) | |
| tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /docs/opcodes/opcode-23-new-array.html | |
| parent | 31e30105703263782efd450d356cd67ea01af3b7 (diff) | |
| download | android_dalvik-f72d5de56a522ac3be03873bdde26f23a5eeeb3c.tar.gz android_dalvik-f72d5de56a522ac3be03873bdde26f23a5eeeb3c.tar.bz2 android_dalvik-f72d5de56a522ac3be03873bdde26f23a5eeeb3c.zip | |
auto import from //depot/cupcake/@135843
Diffstat (limited to 'docs/opcodes/opcode-23-new-array.html')
| -rw-r--r-- | docs/opcodes/opcode-23-new-array.html | 108 |
1 files changed, 0 insertions, 108 deletions
diff --git a/docs/opcodes/opcode-23-new-array.html b/docs/opcodes/opcode-23-new-array.html deleted file mode 100644 index be46a49b3..000000000 --- a/docs/opcodes/opcode-23-new-array.html +++ /dev/null @@ -1,108 +0,0 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - -<html> - -<head> -<title>new-array</title> -<link rel=stylesheet href="opcode.css"> -</head> - -<body> - -<h1>new-array</h1> - -<h2>Purpose</h2> - -<p> -Construct a new array of the indicated type and size. The type must be an array -type. -</p> - -<h2>Details</h2> - -<table class="instruc"> -<thead> -<tr> - <th>Op & Format</th> - <th>Mnemonic / Syntax</th> - <th>Arguments</th> -</tr> -</thead> -<tbody> -<tr> - <td>23 22c</td> - <td>new-array vA, vB, type@CCCC</td> - <td><code>A:</code> destination register (8 bits)<br/> - <code>B:</code> size register<br/> - <code>C:</code> type index</td> -</tr> -</tbody> -</table> - -<h2>Constraints</h2> - -<ul> - <li> - A and B must be valid register indices for the current stack frame. - </li> - <li> - Register vB must not contain a reference value. - </li> - <li> - Register vB must not be part of a register pair. - </li> - <li> - C must be a valid index into the type pool. - </li> - <li> - Type constant pool entry C must contain a valid array type descriptor. - </li> -</ul> - -<h2>Behavior</h2> - -<ul> - <li> - An attempt is made to get a reference to the class K the name of which is - contained in type pool entry C. - </li> - <li> - If K has not been loaded and resolved before, it is being loaded and - resolved. All exceptions that are possible during class loading can occur at - this point. - </li> - <li> - An attempt is made to create a new instance I of K and length B. All - exceptions that are possible during instantiation can occur at this point. - </li> - <li> - All elements of the new array are initialized to null (for object arrays) or - 0 (for numeric arrays) or false (for boolean arrays). - </li> - <li> - A reference to the new array is moved to register vA, that is, vA' = I. - </li> - <li> - If v(A-1) is the lower half of a register pair, v(A-1)' becomes undefined. - </li> - <li> - If v(A+1) is the upper half of a register pair, v(A+1)' becomes undefined. - </li> -</ul> - -<h2>Exceptions</h2> - -<ul> - <li> - NegativeArraySizeException if vB < 0 - </li> - <li> - All exceptions that are possible during class loading can occur. - </li> - <li> - All exceptions that are possible during instantiation can occur. - </li> -</ul> - -</body> -</html> |
