OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved.7 | 1 // Copyright 2012 the V8 project authors. All rights reserved.7 |
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 5529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5540 __ bind(&done); | 5540 __ bind(&done); |
5541 } | 5541 } |
5542 | 5542 |
5543 | 5543 |
5544 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { | 5544 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { |
5545 Register context = ToRegister(instr->context()); | 5545 Register context = ToRegister(instr->context()); |
5546 __ sw(context, MemOperand(fp, StandardFrameConstants::kContextOffset)); | 5546 __ sw(context, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
5547 } | 5547 } |
5548 | 5548 |
5549 | 5549 |
5550 void LCodeGen::DoAllocateBlockContext(LAllocateBlockContext* instr) { | |
5551 Handle<ScopeInfo> scope_info = instr->scope_info(); | |
5552 __ li(at, scope_info); | |
5553 __ Push(at, ToRegister(instr->function())); | |
5554 CallRuntime(Runtime::kPushBlockContext, instr); | |
5555 RecordSafepoint(Safepoint::kNoLazyDeopt); | |
5556 } | |
5557 | |
5558 | |
5559 #undef __ | 5550 #undef __ |
5560 | 5551 |
5561 } // namespace internal | 5552 } // namespace internal |
5562 } // namespace v8 | 5553 } // namespace v8 |
OLD | NEW |