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

Side by Side Diff: src/objects.cc

Issue 1303403004: [Interpreter] Add support for parameter variables. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_add_bytecodes
Patch Set: Fix Windows build Created 5 years, 4 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 11565 matching lines...) Expand 10 before | Expand all | Expand 10 after
11576 os << "RelocInfo (size = " << relocation_size() << ")\n"; 11576 os << "RelocInfo (size = " << relocation_size() << ")\n";
11577 for (RelocIterator it(this); !it.done(); it.next()) { 11577 for (RelocIterator it(this); !it.done(); it.next()) {
11578 it.rinfo()->Print(GetIsolate(), os); 11578 it.rinfo()->Print(GetIsolate(), os);
11579 } 11579 }
11580 os << "\n"; 11580 os << "\n";
11581 } 11581 }
11582 #endif // ENABLE_DISASSEMBLER 11582 #endif // ENABLE_DISASSEMBLER
11583 11583
11584 11584
11585 void BytecodeArray::Disassemble(std::ostream& os) { 11585 void BytecodeArray::Disassemble(std::ostream& os) {
11586 os << "Parameter count " << parameter_count() << "\n";
11586 os << "Frame size " << frame_size() << "\n"; 11587 os << "Frame size " << frame_size() << "\n";
11587 Vector<char> buf = Vector<char>::New(50); 11588 Vector<char> buf = Vector<char>::New(50);
11588 11589
11589 const uint8_t* first_bytecode_address = GetFirstBytecodeAddress(); 11590 const uint8_t* first_bytecode_address = GetFirstBytecodeAddress();
11590 int bytecode_size = 0; 11591 int bytecode_size = 0;
11591 for (int i = 0; i < this->length(); i += bytecode_size) { 11592 for (int i = 0; i < this->length(); i += bytecode_size) {
11592 const uint8_t* bytecode_start = &first_bytecode_address[i]; 11593 const uint8_t* bytecode_start = &first_bytecode_address[i];
11593 interpreter::Bytecode bytecode = 11594 interpreter::Bytecode bytecode =
11594 interpreter::Bytecodes::FromByte(bytecode_start[0]); 11595 interpreter::Bytecodes::FromByte(bytecode_start[0]);
11595 bytecode_size = interpreter::Bytecodes::Size(bytecode); 11596 bytecode_size = interpreter::Bytecodes::Size(bytecode);
(...skipping 4104 matching lines...) Expand 10 before | Expand all | Expand 10 after
15700 if (cell->value() != *new_value) { 15701 if (cell->value() != *new_value) {
15701 cell->set_value(*new_value); 15702 cell->set_value(*new_value);
15702 Isolate* isolate = cell->GetIsolate(); 15703 Isolate* isolate = cell->GetIsolate();
15703 cell->dependent_code()->DeoptimizeDependentCodeGroup( 15704 cell->dependent_code()->DeoptimizeDependentCodeGroup(
15704 isolate, DependentCode::kPropertyCellChangedGroup); 15705 isolate, DependentCode::kPropertyCellChangedGroup);
15705 } 15706 }
15706 } 15707 }
15707 15708
15708 } // namespace internal 15709 } // namespace internal
15709 } // namespace v8 15710 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698