Changeset 34851 in webkit for trunk/JavaScriptCore/VM/Machine.cpp
- Timestamp:
- Jun 28, 2008, 8:50:49 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/VM/Machine.cpp
r34849 r34851 36 36 #include "ExecState.h" 37 37 #include "JSActivation.h" 38 #include "JSArray.h" 39 #include "JSFunction.h" 38 40 #include "JSLock.h" 39 41 #include "JSPropertyNameIterator.h" 42 #include "JSString.h" 40 43 #include "Parser.h" 41 44 #include "Profiler.h" 45 #include "RegExpObject.h" 42 46 #include "Register.h" 43 #include "JSArray.h"44 47 #include "debugger.h" 45 #include "JSFunction.h"46 #include "JSString.h"47 48 #include "object_object.h" 48 49 #include "operations.h" 49 #include "RegExpObject.h"50 51 50 #include <stdio.h> 52 51 … … 1037 1036 } 1038 1037 BEGIN_OPCODE(op_new_array) { 1039 /* new_array dst(r) 1040 1041 Constructs a new emptyArray instance using the original1038 /* new_array dst(r) firstArg(r) argCount(n) 1039 1040 Constructs a new Array instance using the original 1042 1041 constructor, and puts the result in register dst. 1043 */ 1044 int dst = (++vPC)->u.operand; 1045 r[dst].u.jsValue = constructEmptyArray(exec); 1042 The array will contain argCount elements with values 1043 taken from registers starting at register firstArg. 1044 */ 1045 int dst = (++vPC)->u.operand; 1046 int firstArg = (++vPC)->u.operand; 1047 int argCount = (++vPC)->u.operand; 1048 ArgList args(reinterpret_cast<JSValue***>(®isterBase), r - registerBase + firstArg, argCount); 1049 r[dst].u.jsValue = constructArray(exec, args); 1046 1050 1047 1051 ++vPC;
Note:
See TracChangeset
for help on using the changeset viewer.