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

Side by Side Diff: src/x64/deoptimizer-x64.cc

Issue 14612012: Cleaned up deopt output a bit. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Added grep marker. Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « src/mips/deoptimizer-mips.cc ('k') | 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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 260
261 unsigned stack_slot_size = compiled_code_->stack_slots() * kPointerSize; 261 unsigned stack_slot_size = compiled_code_->stack_slots() * kPointerSize;
262 unsigned outgoing_height = data->ArgumentsStackHeight(bailout_id)->value(); 262 unsigned outgoing_height = data->ArgumentsStackHeight(bailout_id)->value();
263 unsigned outgoing_size = outgoing_height * kPointerSize; 263 unsigned outgoing_size = outgoing_height * kPointerSize;
264 unsigned output_frame_size = fixed_size + stack_slot_size + outgoing_size; 264 unsigned output_frame_size = fixed_size + stack_slot_size + outgoing_size;
265 ASSERT(outgoing_size == 0); // OSR does not happen in the middle of a call. 265 ASSERT(outgoing_size == 0); // OSR does not happen in the middle of a call.
266 266
267 if (FLAG_trace_osr) { 267 if (FLAG_trace_osr) {
268 PrintF("[on-stack replacement: begin 0x%08" V8PRIxPTR " ", 268 PrintF("[on-stack replacement: begin 0x%08" V8PRIxPTR " ",
269 reinterpret_cast<intptr_t>(function_)); 269 reinterpret_cast<intptr_t>(function_));
270 function_->PrintName(); 270 PrintFunctionName();
271 PrintF(" => node=%u, frame=%d->%d]\n", 271 PrintF(" => node=%u, frame=%d->%d]\n",
272 ast_id, 272 ast_id,
273 input_frame_size, 273 input_frame_size,
274 output_frame_size); 274 output_frame_size);
275 } 275 }
276 276
277 // There's only one output frame in the OSR case. 277 // There's only one output frame in the OSR case.
278 output_count_ = 1; 278 output_count_ = 1;
279 output_ = new FrameDescription*[1]; 279 output_ = new FrameDescription*[1];
280 output_[0] = new(output_frame_size) FrameDescription( 280 output_[0] = new(output_frame_size) FrameDescription(
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 } 355 }
356 Code* continuation = 356 Code* continuation =
357 function_->GetIsolate()->builtins()->builtin(Builtins::kNotifyOSR); 357 function_->GetIsolate()->builtins()->builtin(Builtins::kNotifyOSR);
358 output_[0]->SetContinuation( 358 output_[0]->SetContinuation(
359 reinterpret_cast<intptr_t>(continuation->entry())); 359 reinterpret_cast<intptr_t>(continuation->entry()));
360 360
361 if (FLAG_trace_osr) { 361 if (FLAG_trace_osr) {
362 PrintF("[on-stack replacement translation %s: 0x%08" V8PRIxPTR " ", 362 PrintF("[on-stack replacement translation %s: 0x%08" V8PRIxPTR " ",
363 ok ? "finished" : "aborted", 363 ok ? "finished" : "aborted",
364 reinterpret_cast<intptr_t>(function_)); 364 reinterpret_cast<intptr_t>(function_));
365 function_->PrintName(); 365 PrintFunctionName();
366 PrintF(" => pc=0x%0" V8PRIxPTR "]\n", output_[0]->GetPc()); 366 PrintF(" => pc=0x%0" V8PRIxPTR "]\n", output_[0]->GetPc());
367 } 367 }
368 } 368 }
369 369
370 370
371 void Deoptimizer::DoComputeJSFrame(TranslationIterator* iterator, 371 void Deoptimizer::DoComputeJSFrame(TranslationIterator* iterator,
372 int frame_index) { 372 int frame_index) {
373 BailoutId node_id = BailoutId(iterator->Next()); 373 BailoutId node_id = BailoutId(iterator->Next());
374 JSFunction* function; 374 JSFunction* function;
375 if (frame_index != 0) { 375 if (frame_index != 0) {
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 } 789 }
790 __ bind(&done); 790 __ bind(&done);
791 } 791 }
792 792
793 #undef __ 793 #undef __
794 794
795 795
796 } } // namespace v8::internal 796 } } // namespace v8::internal
797 797
798 #endif // V8_TARGET_ARCH_X64 798 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/mips/deoptimizer-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698