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

Side by Side Diff: src/objects.cc

Issue 1607433005: [interpreter] Implement exception handler table building. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Added moar tests. Created 4 years, 11 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') | test/cctest/interpreter/test-bytecode-generator.cc » ('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 14994 matching lines...) Expand 10 before | Expand all | Expand 10 after
15005 os << buf.start(); 15005 os << buf.start();
15006 } else if (interpreter::Bytecodes::IsJump(bytecode)) { 15006 } else if (interpreter::Bytecodes::IsJump(bytecode)) {
15007 DCHECK_EQ(bytecode_size, 2); 15007 DCHECK_EQ(bytecode_size, 2);
15008 int offset = static_cast<int8_t>(bytecode_start[1]); 15008 int offset = static_cast<int8_t>(bytecode_start[1]);
15009 SNPrintF(buf, " (%p)", bytecode_start + offset); 15009 SNPrintF(buf, " (%p)", bytecode_start + offset);
15010 os << buf.start(); 15010 os << buf.start();
15011 } 15011 }
15012 os << "\n"; 15012 os << "\n";
15013 } 15013 }
15014 15014
15015 os << "Constant pool (size = " << constant_pool()->length() << ")\n"; 15015 if (constant_pool()->length() > 0) {
15016 constant_pool()->Print(); 15016 os << "Constant pool (size = " << constant_pool()->length() << ")\n";
15017 constant_pool()->Print();
15018 }
15019
15020 #ifdef ENABLE_DISASSEMBLER
15021 if (handler_table()->length() > 0) {
15022 os << "Handler Table (size = " << handler_table()->Size() << ")\n";
15023 HandlerTable::cast(handler_table())->HandlerTableRangePrint(os);
15024 }
15025 #endif
15017 } 15026 }
15018 15027
15019 15028
15020 // static 15029 // static
15021 void JSArray::Initialize(Handle<JSArray> array, int capacity, int length) { 15030 void JSArray::Initialize(Handle<JSArray> array, int capacity, int length) {
15022 DCHECK(capacity >= 0); 15031 DCHECK(capacity >= 0);
15023 array->GetIsolate()->factory()->NewJSArrayStorage( 15032 array->GetIsolate()->factory()->NewJSArrayStorage(
15024 array, length, capacity, INITIALIZE_ARRAY_ELEMENTS_WITH_HOLE); 15033 array, length, capacity, INITIALIZE_ARRAY_ELEMENTS_WITH_HOLE);
15025 } 15034 }
15026 15035
(...skipping 4688 matching lines...) Expand 10 before | Expand all | Expand 10 after
19715 if (cell->value() != *new_value) { 19724 if (cell->value() != *new_value) {
19716 cell->set_value(*new_value); 19725 cell->set_value(*new_value);
19717 Isolate* isolate = cell->GetIsolate(); 19726 Isolate* isolate = cell->GetIsolate();
19718 cell->dependent_code()->DeoptimizeDependentCodeGroup( 19727 cell->dependent_code()->DeoptimizeDependentCodeGroup(
19719 isolate, DependentCode::kPropertyCellChangedGroup); 19728 isolate, DependentCode::kPropertyCellChangedGroup);
19720 } 19729 }
19721 } 19730 }
19722 19731
19723 } // namespace internal 19732 } // namespace internal
19724 } // namespace v8 19733 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects.h ('k') | test/cctest/interpreter/test-bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698