OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
6 #include "src/compiler/code-generator-impl.h" | 6 #include "src/compiler/code-generator-impl.h" |
7 #include "src/compiler/gap-resolver.h" | 7 #include "src/compiler/gap-resolver.h" |
8 #include "src/compiler/node-matchers.h" | 8 #include "src/compiler/node-matchers.h" |
9 #include "src/mips/macro-assembler-mips.h" | 9 #include "src/mips/macro-assembler-mips.h" |
10 #include "src/scopes.h" | 10 #include "src/scopes.h" |
(...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1044 // TurboFan OSR-compiled functions cannot be entered directly. | 1044 // TurboFan OSR-compiled functions cannot be entered directly. |
1045 __ Abort(kShouldNotDirectlyEnterOsrFunction); | 1045 __ Abort(kShouldNotDirectlyEnterOsrFunction); |
1046 | 1046 |
1047 // Unoptimized code jumps directly to this entrypoint while the unoptimized | 1047 // Unoptimized code jumps directly to this entrypoint while the unoptimized |
1048 // frame is still on the stack. Optimized code uses OSR values directly from | 1048 // frame is still on the stack. Optimized code uses OSR values directly from |
1049 // the unoptimized frame. Thus, all that needs to be done is to allocate the | 1049 // the unoptimized frame. Thus, all that needs to be done is to allocate the |
1050 // remaining stack slots. | 1050 // remaining stack slots. |
1051 if (FLAG_code_comments) __ RecordComment("-- OSR entrypoint --"); | 1051 if (FLAG_code_comments) __ RecordComment("-- OSR entrypoint --"); |
1052 osr_pc_offset_ = __ pc_offset(); | 1052 osr_pc_offset_ = __ pc_offset(); |
1053 // TODO(titzer): cannot address target function == local #-1 | 1053 // TODO(titzer): cannot address target function == local #-1 |
1054 __ lw(a1, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 1054 __ ld(a1, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); |
1055 DCHECK(stack_slots >= frame()->GetOsrStackSlotCount()); | 1055 DCHECK(stack_slots >= frame()->GetOsrStackSlotCount()); |
1056 stack_slots -= frame()->GetOsrStackSlotCount(); | 1056 stack_slots -= frame()->GetOsrStackSlotCount(); |
1057 } | 1057 } |
1058 | 1058 |
1059 if (stack_slots > 0) { | 1059 if (stack_slots > 0) { |
1060 __ Dsubu(sp, sp, Operand(stack_slots * kPointerSize)); | 1060 __ Dsubu(sp, sp, Operand(stack_slots * kPointerSize)); |
1061 } | 1061 } |
1062 } | 1062 } |
1063 | 1063 |
1064 | 1064 |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1288 } | 1288 } |
1289 } | 1289 } |
1290 MarkLazyDeoptSite(); | 1290 MarkLazyDeoptSite(); |
1291 } | 1291 } |
1292 | 1292 |
1293 #undef __ | 1293 #undef __ |
1294 | 1294 |
1295 } // namespace compiler | 1295 } // namespace compiler |
1296 } // namespace internal | 1296 } // namespace internal |
1297 } // namespace v8 | 1297 } // namespace v8 |
OLD | NEW |