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

Side by Side Diff: src/deoptimizer.cc

Issue 255543003: CodeStubs contain their corresponding Isolate* now. (part 2) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
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 1763 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(isolate_, 1783 StubFailureTrampolineStub(isolate_,
1784 function_mode).FindCodeInCache(&trampoline, 1784 function_mode).FindCodeInCache(&trampoline);
1785 isolate_);
1786 ASSERT(trampoline != NULL); 1785 ASSERT(trampoline != NULL);
1787 output_frame->SetPc(reinterpret_cast<intptr_t>( 1786 output_frame->SetPc(reinterpret_cast<intptr_t>(
1788 trampoline->instruction_start())); 1787 trampoline->instruction_start()));
1789 if (FLAG_enable_ool_constant_pool) { 1788 if (FLAG_enable_ool_constant_pool) {
1790 Register constant_pool_reg = 1789 Register constant_pool_reg =
1791 StubFailureTrampolineFrame::constant_pool_pointer_register(); 1790 StubFailureTrampolineFrame::constant_pool_pointer_register();
1792 intptr_t constant_pool_value = 1791 intptr_t constant_pool_value =
1793 reinterpret_cast<intptr_t>(trampoline->constant_pool()); 1792 reinterpret_cast<intptr_t>(trampoline->constant_pool());
1794 output_frame->SetConstantPool(constant_pool_value); 1793 output_frame->SetConstantPool(constant_pool_value);
1795 output_frame->SetRegister(constant_pool_reg.code(), constant_pool_value); 1794 output_frame->SetRegister(constant_pool_reg.code(), constant_pool_value);
(...skipping 1749 matching lines...) Expand 10 before | Expand all | Expand 10 after
3545 3544
3546 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) { 3545 void DeoptimizedFrameInfo::Iterate(ObjectVisitor* v) {
3547 v->VisitPointer(BitCast<Object**>(&function_)); 3546 v->VisitPointer(BitCast<Object**>(&function_));
3548 v->VisitPointers(parameters_, parameters_ + parameters_count_); 3547 v->VisitPointers(parameters_, parameters_ + parameters_count_);
3549 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_); 3548 v->VisitPointers(expression_stack_, expression_stack_ + expression_count_);
3550 } 3549 }
3551 3550
3552 #endif // ENABLE_DEBUGGER_SUPPORT 3551 #endif // ENABLE_DEBUGGER_SUPPORT
3553 3552
3554 } } // namespace v8::internal 3553 } } // namespace v8::internal
OLDNEW
« src/arm/macro-assembler-arm.cc ('K') | « src/code-stubs-hydrogen.cc ('k') | src/frames.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698