OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 | 5 |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS | 9 #if V8_TARGET_ARCH_MIPS |
10 | 10 |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 __ Pop(ra, fp, a1); // Return address, Frame, Function. | 320 __ Pop(ra, fp, a1); // Return address, Frame, Function. |
321 | 321 |
322 // Load context from the function. | 322 // Load context from the function. |
323 __ lw(cp, FieldMemOperand(a1, JSFunction::kContextOffset)); | 323 __ lw(cp, FieldMemOperand(a1, JSFunction::kContextOffset)); |
324 | 324 |
325 // Get function code. | 325 // Get function code. |
326 __ lw(at, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); | 326 __ lw(at, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); |
327 __ lw(at, FieldMemOperand(at, SharedFunctionInfo::kCodeOffset)); | 327 __ lw(at, FieldMemOperand(at, SharedFunctionInfo::kCodeOffset)); |
328 __ Addu(t9, at, Operand(Code::kHeaderSize - kHeapObjectTag)); | 328 __ Addu(t9, at, Operand(Code::kHeaderSize - kHeapObjectTag)); |
329 | 329 |
330 // Re-run JSFunction, r1 is function, cp is context. | 330 // Re-run JSFunction, a1 is function, cp is context. |
331 __ Jump(t9); | 331 __ Jump(t9); |
332 } | 332 } |
333 | 333 |
334 | 334 |
335 const bool LiveEdit::kFrameDropperSupported = true; | 335 const bool LiveEdit::kFrameDropperSupported = true; |
336 | 336 |
337 #undef __ | 337 #undef __ |
338 | 338 |
339 } } // namespace v8::internal | 339 } } // namespace v8::internal |
340 | 340 |
341 #endif // V8_TARGET_ARCH_MIPS | 341 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |