OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/objects.h" | 5 #include "src/objects.h" |
6 | 6 |
7 #include <iomanip> | 7 #include <iomanip> |
8 #include <sstream> | 8 #include <sstream> |
9 | 9 |
10 #include "src/accessors.h" | 10 #include "src/accessors.h" |
(...skipping 11584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11595 const uint8_t* bytecode_start = &first_bytecode_address[i]; | 11595 const uint8_t* bytecode_start = &first_bytecode_address[i]; |
11596 interpreter::Bytecode bytecode = | 11596 interpreter::Bytecode bytecode = |
11597 interpreter::Bytecodes::FromByte(bytecode_start[0]); | 11597 interpreter::Bytecodes::FromByte(bytecode_start[0]); |
11598 bytecode_size = interpreter::Bytecodes::Size(bytecode); | 11598 bytecode_size = interpreter::Bytecodes::Size(bytecode); |
11599 | 11599 |
11600 SNPrintF(buf, "%p", bytecode_start); | 11600 SNPrintF(buf, "%p", bytecode_start); |
11601 os << buf.start() << " : "; | 11601 os << buf.start() << " : "; |
11602 interpreter::Bytecodes::Decode(os, bytecode_start); | 11602 interpreter::Bytecodes::Decode(os, bytecode_start); |
11603 os << "\n"; | 11603 os << "\n"; |
11604 } | 11604 } |
| 11605 |
| 11606 os << "Constant pool (size = " << constant_pool()->length() << ")\n"; |
| 11607 constant_pool()->Print(); |
11605 } | 11608 } |
11606 | 11609 |
11607 | 11610 |
11608 // static | 11611 // static |
11609 void JSArray::Initialize(Handle<JSArray> array, int capacity, int length) { | 11612 void JSArray::Initialize(Handle<JSArray> array, int capacity, int length) { |
11610 DCHECK(capacity >= 0); | 11613 DCHECK(capacity >= 0); |
11611 array->GetIsolate()->factory()->NewJSArrayStorage( | 11614 array->GetIsolate()->factory()->NewJSArrayStorage( |
11612 array, length, capacity, INITIALIZE_ARRAY_ELEMENTS_WITH_HOLE); | 11615 array, length, capacity, INITIALIZE_ARRAY_ELEMENTS_WITH_HOLE); |
11613 } | 11616 } |
11614 | 11617 |
(...skipping 4209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15824 if (cell->value() != *new_value) { | 15827 if (cell->value() != *new_value) { |
15825 cell->set_value(*new_value); | 15828 cell->set_value(*new_value); |
15826 Isolate* isolate = cell->GetIsolate(); | 15829 Isolate* isolate = cell->GetIsolate(); |
15827 cell->dependent_code()->DeoptimizeDependentCodeGroup( | 15830 cell->dependent_code()->DeoptimizeDependentCodeGroup( |
15828 isolate, DependentCode::kPropertyCellChangedGroup); | 15831 isolate, DependentCode::kPropertyCellChangedGroup); |
15829 } | 15832 } |
15830 } | 15833 } |
15831 | 15834 |
15832 } // namespace internal | 15835 } // namespace internal |
15833 } // namespace v8 | 15836 } // namespace v8 |
OLD | NEW |