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

Side by Side Diff: src/objects.cc

Issue 1703453002: [interpreter, debugger] support debug breaks via bytecode array copy (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 4 years, 10 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
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 <cmath> 7 #include <cmath>
8 #include <iomanip> 8 #include <iomanip>
9 #include <sstream> 9 #include <sstream>
10 10
(...skipping 15164 matching lines...) Expand 10 before | Expand all | Expand 10 after
15175 } 15175 }
15176 15176
15177 #ifdef ENABLE_DISASSEMBLER 15177 #ifdef ENABLE_DISASSEMBLER
15178 if (handler_table()->length() > 0) { 15178 if (handler_table()->length() > 0) {
15179 os << "Handler Table (size = " << handler_table()->Size() << ")\n"; 15179 os << "Handler Table (size = " << handler_table()->Size() << ")\n";
15180 HandlerTable::cast(handler_table())->HandlerTableRangePrint(os); 15180 HandlerTable::cast(handler_table())->HandlerTableRangePrint(os);
15181 } 15181 }
15182 #endif 15182 #endif
15183 } 15183 }
15184 15184
15185 void BytecodeArray::CopyBytecodesTo(BytecodeArray* to) {
15186 BytecodeArray* from = this;
15187 DCHECK_EQ(from->length(), to->length());
15188 CopyBytes(to->GetFirstBytecodeAddress(), from->GetFirstBytecodeAddress(),
15189 from->length());
15190 }
15185 15191
15186 // static 15192 // static
15187 void JSArray::Initialize(Handle<JSArray> array, int capacity, int length) { 15193 void JSArray::Initialize(Handle<JSArray> array, int capacity, int length) {
15188 DCHECK(capacity >= 0); 15194 DCHECK(capacity >= 0);
15189 array->GetIsolate()->factory()->NewJSArrayStorage( 15195 array->GetIsolate()->factory()->NewJSArrayStorage(
15190 array, length, capacity, INITIALIZE_ARRAY_ELEMENTS_WITH_HOLE); 15196 array, length, capacity, INITIALIZE_ARRAY_ELEMENTS_WITH_HOLE);
15191 } 15197 }
15192 15198
15193 15199
15194 // Returns false if the passed-in index is marked non-configurable, which will 15200 // Returns false if the passed-in index is marked non-configurable, which will
(...skipping 4688 matching lines...) Expand 10 before | Expand all | Expand 10 after
19883 if (cell->value() != *new_value) { 19889 if (cell->value() != *new_value) {
19884 cell->set_value(*new_value); 19890 cell->set_value(*new_value);
19885 Isolate* isolate = cell->GetIsolate(); 19891 Isolate* isolate = cell->GetIsolate();
19886 cell->dependent_code()->DeoptimizeDependentCodeGroup( 19892 cell->dependent_code()->DeoptimizeDependentCodeGroup(
19887 isolate, DependentCode::kPropertyCellChangedGroup); 19893 isolate, DependentCode::kPropertyCellChangedGroup);
19888 } 19894 }
19889 } 19895 }
19890 19896
19891 } // namespace internal 19897 } // namespace internal
19892 } // namespace v8 19898 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698