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

Side by Side Diff: src/objects.cc

Issue 1528913003: [Interpreter] Add basic deoptimization support from TurboFan to Ignition. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_deopt_1
Patch Set: Add MIPS port and fix comment Created 5 years 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/mips64/builtins-mips64.cc ('k') | src/x64/builtins-x64.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 14325 matching lines...) Expand 10 before | Expand all | Expand 10 after
14336 int ast_id = iterator.Next(); 14336 int ast_id = iterator.Next();
14337 int shared_info_id = iterator.Next(); 14337 int shared_info_id = iterator.Next();
14338 unsigned height = iterator.Next(); 14338 unsigned height = iterator.Next();
14339 Object* shared_info = LiteralArray()->get(shared_info_id); 14339 Object* shared_info = LiteralArray()->get(shared_info_id);
14340 os << "{ast_id=" << ast_id << ", function=" 14340 os << "{ast_id=" << ast_id << ", function="
14341 << Brief(SharedFunctionInfo::cast(shared_info)->DebugName()) 14341 << Brief(SharedFunctionInfo::cast(shared_info)->DebugName())
14342 << ", height=" << height << "}"; 14342 << ", height=" << height << "}";
14343 break; 14343 break;
14344 } 14344 }
14345 14345
14346 case Translation::INTERPRETED_FRAME: {
14347 int bytecode_offset = iterator.Next();
14348 int shared_info_id = iterator.Next();
14349 unsigned height = iterator.Next();
14350 Object* shared_info = LiteralArray()->get(shared_info_id);
14351 os << "{bytecode_offset=" << bytecode_offset << ", function="
14352 << Brief(SharedFunctionInfo::cast(shared_info)->DebugName())
14353 << ", height=" << height << "}";
14354 break;
14355 }
14356
14346 case Translation::JS_FRAME_FUNCTION: { 14357 case Translation::JS_FRAME_FUNCTION: {
14347 os << "{function}"; 14358 os << "{function}";
14348 break; 14359 break;
14349 } 14360 }
14350 14361
14351 case Translation::COMPILED_STUB_FRAME: { 14362 case Translation::COMPILED_STUB_FRAME: {
14352 Code::Kind stub_kind = static_cast<Code::Kind>(iterator.Next()); 14363 Code::Kind stub_kind = static_cast<Code::Kind>(iterator.Next());
14353 os << "{kind=" << stub_kind << "}"; 14364 os << "{kind=" << stub_kind << "}";
14354 break; 14365 break;
14355 } 14366 }
(...skipping 5009 matching lines...) Expand 10 before | Expand all | Expand 10 after
19365 if (cell->value() != *new_value) { 19376 if (cell->value() != *new_value) {
19366 cell->set_value(*new_value); 19377 cell->set_value(*new_value);
19367 Isolate* isolate = cell->GetIsolate(); 19378 Isolate* isolate = cell->GetIsolate();
19368 cell->dependent_code()->DeoptimizeDependentCodeGroup( 19379 cell->dependent_code()->DeoptimizeDependentCodeGroup(
19369 isolate, DependentCode::kPropertyCellChangedGroup); 19380 isolate, DependentCode::kPropertyCellChangedGroup);
19370 } 19381 }
19371 } 19382 }
19372 19383
19373 } // namespace internal 19384 } // namespace internal
19374 } // namespace v8 19385 } // namespace v8
OLDNEW
« no previous file with comments | « src/mips64/builtins-mips64.cc ('k') | src/x64/builtins-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698