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

Side by Side Diff: src/mips/builtins-mips.cc

Issue 602603005: MIPS: Minor fixes and additions needed for Turbofan. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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 | « no previous file | src/mips/code-stubs-mips.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 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 27 matching lines...) Expand all
38 38
39 // Insert extra arguments. 39 // Insert extra arguments.
40 int num_extra_args = 0; 40 int num_extra_args = 0;
41 if (extra_args == NEEDS_CALLED_FUNCTION) { 41 if (extra_args == NEEDS_CALLED_FUNCTION) {
42 num_extra_args = 1; 42 num_extra_args = 1;
43 __ push(a1); 43 __ push(a1);
44 } else { 44 } else {
45 DCHECK(extra_args == NO_EXTRA_ARGUMENTS); 45 DCHECK(extra_args == NO_EXTRA_ARGUMENTS);
46 } 46 }
47 47
48 // JumpToExternalReference expects s0 to contain the number of arguments 48 // JumpToExternalReference expects a0 to contain the number of arguments
49 // including the receiver and the extra arguments. 49 // including the receiver and the extra arguments.
50 __ Addu(s0, a0, num_extra_args + 1); 50 __ Addu(a0, a0, num_extra_args + 1);
51 __ sll(s1, s0, kPointerSizeLog2);
52 __ Subu(s1, s1, kPointerSize);
53 __ JumpToExternalReference(ExternalReference(id, masm->isolate())); 51 __ JumpToExternalReference(ExternalReference(id, masm->isolate()));
54 } 52 }
55 53
56 54
57 // Load the built-in InternalArray function from the current context. 55 // Load the built-in InternalArray function from the current context.
58 static void GenerateLoadInternalArrayFunction(MacroAssembler* masm, 56 static void GenerateLoadInternalArrayFunction(MacroAssembler* masm,
59 Register result) { 57 Register result) {
60 // Load the native context. 58 // Load the native context.
61 59
62 __ lw(result, 60 __ lw(result,
(...skipping 1509 matching lines...) Expand 10 before | Expand all | Expand 10 after
1572 __ break_(0xCC); 1570 __ break_(0xCC);
1573 } 1571 }
1574 } 1572 }
1575 1573
1576 1574
1577 #undef __ 1575 #undef __
1578 1576
1579 } } // namespace v8::internal 1577 } } // namespace v8::internal
1580 1578
1581 #endif // V8_TARGET_ARCH_MIPS 1579 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698