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

Side by Side Diff: src/x87/lithium-codegen-x87.cc

Issue 589313002: X87: Further improve deopt reason output (Closed) Base URL: https://chromium.googlesource.com/external/v8.git@bleeding_edge
Patch Set: Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_X87 7 #if V8_TARGET_ARCH_X87
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 376
377 bool LCodeGen::GenerateJumpTable() { 377 bool LCodeGen::GenerateJumpTable() {
378 Label needs_frame; 378 Label needs_frame;
379 if (jump_table_.length() > 0) { 379 if (jump_table_.length() > 0) {
380 Comment(";;; -------------------- Jump table --------------------"); 380 Comment(";;; -------------------- Jump table --------------------");
381 } 381 }
382 for (int i = 0; i < jump_table_.length(); i++) { 382 for (int i = 0; i < jump_table_.length(); i++) {
383 Deoptimizer::JumpTableEntry* table_entry = &jump_table_[i]; 383 Deoptimizer::JumpTableEntry* table_entry = &jump_table_[i];
384 __ bind(&table_entry->label); 384 __ bind(&table_entry->label);
385 Address entry = table_entry->address; 385 Address entry = table_entry->address;
386 Deoptimizer::BailoutType type = table_entry->bailout_type;
387 int id = Deoptimizer::GetDeoptimizationId(isolate(), entry, type);
388 DCHECK_NE(Deoptimizer::kNotDeoptimizationEntry, id);
389 DeoptComment(table_entry->reason); 386 DeoptComment(table_entry->reason);
390 if (table_entry->needs_frame) { 387 if (table_entry->needs_frame) {
391 DCHECK(!info()->saves_caller_doubles()); 388 DCHECK(!info()->saves_caller_doubles());
392 __ push(Immediate(ExternalReference::ForDeoptEntry(entry))); 389 __ push(Immediate(ExternalReference::ForDeoptEntry(entry)));
393 if (needs_frame.is_bound()) { 390 if (needs_frame.is_bound()) {
394 __ jmp(&needs_frame); 391 __ jmp(&needs_frame);
395 } else { 392 } else {
396 __ bind(&needs_frame); 393 __ bind(&needs_frame);
397 __ push(MemOperand(ebp, StandardFrameConstants::kContextOffset)); 394 __ push(MemOperand(ebp, StandardFrameConstants::kContextOffset));
398 // This variant of deopt can only be used with stubs. Since we don't 395 // This variant of deopt can only be used with stubs. Since we don't
(...skipping 5842 matching lines...) Expand 10 before | Expand all | Expand 10 after
6241 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6238 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6242 RecordSafepoint(Safepoint::kNoLazyDeopt); 6239 RecordSafepoint(Safepoint::kNoLazyDeopt);
6243 } 6240 }
6244 6241
6245 6242
6246 #undef __ 6243 #undef __
6247 6244
6248 } } // namespace v8::internal 6245 } } // namespace v8::internal
6249 6246
6250 #endif // V8_TARGET_ARCH_X87 6247 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698