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

Side by Side Diff: src/deoptimizer.cc

Issue 246643014: CodeStubs contain their corresponding Isolate* now. (part 1) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Feedback. Rebased. Created 6 years, 8 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/code-stubs.cc ('k') | src/frames.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 1762 matching lines...) Expand 10 before | Expand all | Expand 10 after
1773 1773
1774 // Copy the double registers from the input into the output frame. 1774 // Copy the double registers from the input into the output frame.
1775 CopyDoubleRegisters(output_frame); 1775 CopyDoubleRegisters(output_frame);
1776 1776
1777 // Fill registers containing handler and number of parameters. 1777 // Fill registers containing handler and number of parameters.
1778 SetPlatformCompiledStubRegisters(output_frame, descriptor); 1778 SetPlatformCompiledStubRegisters(output_frame, descriptor);
1779 1779
1780 // Compute this frame's PC, state, and continuation. 1780 // Compute this frame's PC, state, and continuation.
1781 Code* trampoline = NULL; 1781 Code* trampoline = NULL;
1782 StubFunctionMode function_mode = descriptor->function_mode_; 1782 StubFunctionMode function_mode = descriptor->function_mode_;
1783 StubFailureTrampolineStub(function_mode).FindCodeInCache(&trampoline, 1783 StubFailureTrampolineStub(isolate_,
1784 function_mode).FindCodeInCache(&trampoline,
1784 isolate_); 1785 isolate_);
1785 ASSERT(trampoline != NULL); 1786 ASSERT(trampoline != NULL);
1786 output_frame->SetPc(reinterpret_cast<intptr_t>( 1787 output_frame->SetPc(reinterpret_cast<intptr_t>(
1787 trampoline->instruction_start())); 1788 trampoline->instruction_start()));
1788 if (FLAG_enable_ool_constant_pool) { 1789 if (FLAG_enable_ool_constant_pool) {
1789 Register constant_pool_reg = 1790 Register constant_pool_reg =
1790 StubFailureTrampolineFrame::constant_pool_pointer_register(); 1791 StubFailureTrampolineFrame::constant_pool_pointer_register();
1791 intptr_t constant_pool_value = 1792 intptr_t constant_pool_value =
1792 reinterpret_cast<intptr_t>(trampoline->constant_pool()); 1793 reinterpret_cast<intptr_t>(trampoline->constant_pool());
1793 output_frame->SetConstantPool(constant_pool_value); 1794 output_frame->SetConstantPool(constant_pool_value);
(...skipping 1750 matching lines...) Expand 10 before | Expand all | Expand 10 after
3544 3545
3545 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) { 3546 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) {
3546 v->VisitPointer(BitCast<Object**>(&function_)); 3547 v->VisitPointer(BitCast<Object**>(&function_));
3547 v->VisitPointers(parameters_, parameters_ + parameters_count_); 3548 v->VisitPointers(parameters_, parameters_ + parameters_count_);
3548 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_); 3549 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_);
3549 } 3550 }
3550 3551
3551 #endif // ENABLE_DEBUGGER_SUPPORT 3552 #endif // ENABLE_DEBUGGER_SUPPORT
3552 3553
3553 } } // namespace v8::internal 3554 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/frames.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698