Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Side by Side Diff: src/objects.cc

Issue 1314953004: [interpreter] Add constant_pool() to BytecodeArray. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_args
Patch Set: Fix store buffer. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 11582 matching lines...) Expand 10 before | Expand all | Expand 10 after
11593 const uint8_t* bytecode_start = &first_bytecode_address[i]; 11593 const uint8_t* bytecode_start = &first_bytecode_address[i];
11594 interpreter::Bytecode bytecode = 11594 interpreter::Bytecode bytecode =
11595 interpreter::Bytecodes::FromByte(bytecode_start[0]); 11595 interpreter::Bytecodes::FromByte(bytecode_start[0]);
11596 bytecode_size = interpreter::Bytecodes::Size(bytecode); 11596 bytecode_size = interpreter::Bytecodes::Size(bytecode);
11597 11597
11598 SNPrintF(buf, "%p", bytecode_start); 11598 SNPrintF(buf, "%p", bytecode_start);
11599 os << buf.start() << " : "; 11599 os << buf.start() << " : ";
11600 interpreter::Bytecodes::Decode(os, bytecode_start); 11600 interpreter::Bytecodes::Decode(os, bytecode_start);
11601 os << "\n"; 11601 os << "\n";
11602 } 11602 }
11603
11604 os << "Constant pool (size = " << constant_pool()->length() << ")\n";
11605 constant_pool()->Print();
11603 } 11606 }
11604 11607
11605 11608
11606 // static 11609 // static
11607 void JSArray::Initialize(Handle<JSArray> array, int capacity, int length) { 11610 void JSArray::Initialize(Handle<JSArray> array, int capacity, int length) {
11608 DCHECK(capacity >= 0); 11611 DCHECK(capacity >= 0);
11609 array->GetIsolate()->factory()->NewJSArrayStorage( 11612 array->GetIsolate()->factory()->NewJSArrayStorage(
11610 array, length, capacity, INITIALIZE_ARRAY_ELEMENTS_WITH_HOLE); 11613 array, length, capacity, INITIALIZE_ARRAY_ELEMENTS_WITH_HOLE);
11611 } 11614 }
11612 11615
(...skipping 4088 matching lines...) Expand 10 before | Expand all | Expand 10 after
15701 if (cell->value() != *new_value) { 15704 if (cell->value() != *new_value) {
15702 cell->set_value(*new_value); 15705 cell->set_value(*new_value);
15703 Isolate* isolate = cell->GetIsolate(); 15706 Isolate* isolate = cell->GetIsolate();
15704 cell->dependent_code()->DeoptimizeDependentCodeGroup( 15707 cell->dependent_code()->DeoptimizeDependentCodeGroup(
15705 isolate, DependentCode::kPropertyCellChangedGroup); 15708 isolate, DependentCode::kPropertyCellChangedGroup);
15706 } 15709 }
15707 } 15710 }
15708 15711
15709 } // namespace internal 15712 } // namespace internal
15710 } // namespace v8 15713 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-debug.cc » ('j') | test/cctest/test-heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698