| 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 11897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11908 const uint8_t* first_bytecode_address = GetFirstBytecodeAddress(); | 11908 const uint8_t* first_bytecode_address = GetFirstBytecodeAddress(); |
| 11909 int bytecode_size = 0; | 11909 int bytecode_size = 0; |
| 11910 for (int i = 0; i < this->length(); i += bytecode_size) { | 11910 for (int i = 0; i < this->length(); i += bytecode_size) { |
| 11911 const uint8_t* bytecode_start = &first_bytecode_address[i]; | 11911 const uint8_t* bytecode_start = &first_bytecode_address[i]; |
| 11912 interpreter::Bytecode bytecode = | 11912 interpreter::Bytecode bytecode = |
| 11913 interpreter::Bytecodes::FromByte(bytecode_start[0]); | 11913 interpreter::Bytecodes::FromByte(bytecode_start[0]); |
| 11914 bytecode_size = interpreter::Bytecodes::Size(bytecode); | 11914 bytecode_size = interpreter::Bytecodes::Size(bytecode); |
| 11915 | 11915 |
| 11916 SNPrintF(buf, "%p", bytecode_start); | 11916 SNPrintF(buf, "%p", bytecode_start); |
| 11917 os << buf.start() << " : "; | 11917 os << buf.start() << " : "; |
| 11918 interpreter::Bytecodes::Decode(os, bytecode_start); | 11918 interpreter::Bytecodes::Decode(os, bytecode_start, parameter_count()); |
| 11919 os << "\n"; | 11919 os << "\n"; |
| 11920 } | 11920 } |
| 11921 | 11921 |
| 11922 os << "Constant pool (size = " << constant_pool()->length() << ")\n"; | 11922 os << "Constant pool (size = " << constant_pool()->length() << ")\n"; |
| 11923 constant_pool()->Print(); | 11923 constant_pool()->Print(); |
| 11924 } | 11924 } |
| 11925 | 11925 |
| 11926 | 11926 |
| 11927 // static | 11927 // static |
| 11928 void JSArray::Initialize(Handle<JSArray> array, int capacity, int length) { | 11928 void JSArray::Initialize(Handle<JSArray> array, int capacity, int length) { |
| (...skipping 4235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16164 if (cell->value() != *new_value) { | 16164 if (cell->value() != *new_value) { |
| 16165 cell->set_value(*new_value); | 16165 cell->set_value(*new_value); |
| 16166 Isolate* isolate = cell->GetIsolate(); | 16166 Isolate* isolate = cell->GetIsolate(); |
| 16167 cell->dependent_code()->DeoptimizeDependentCodeGroup( | 16167 cell->dependent_code()->DeoptimizeDependentCodeGroup( |
| 16168 isolate, DependentCode::kPropertyCellChangedGroup); | 16168 isolate, DependentCode::kPropertyCellChangedGroup); |
| 16169 } | 16169 } |
| 16170 } | 16170 } |
| 16171 | 16171 |
| 16172 } // namespace internal | 16172 } // namespace internal |
| 16173 } // namespace v8 | 16173 } // namespace v8 |
| OLD | NEW |