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

Side by Side Diff: src/mips64/code-stubs-mips64.cc

Issue 1510483002: Removes the Callee parameter from FunctionCallbackInfo. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/ppc/code-stubs-ppc.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 #if V8_TARGET_ARCH_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/ic/handler-compiler.h" 10 #include "src/ic/handler-compiler.h"
(...skipping 5449 matching lines...) Expand 10 before | Expand all | Expand 10 after
5460 // ----------------------------------- 5460 // -----------------------------------
5461 5461
5462 Register callee = a0; 5462 Register callee = a0;
5463 Register call_data = a4; 5463 Register call_data = a4;
5464 Register holder = a2; 5464 Register holder = a2;
5465 Register api_function_address = a1; 5465 Register api_function_address = a1;
5466 Register context = cp; 5466 Register context = cp;
5467 5467
5468 typedef FunctionCallbackArguments FCA; 5468 typedef FunctionCallbackArguments FCA;
5469 5469
5470 STATIC_ASSERT(FCA::kContextSaveIndex == 6); 5470 STATIC_ASSERT(FCA::kContextSaveIndex == 5);
5471 STATIC_ASSERT(FCA::kCalleeIndex == 5);
5472 STATIC_ASSERT(FCA::kDataIndex == 4); 5471 STATIC_ASSERT(FCA::kDataIndex == 4);
5473 STATIC_ASSERT(FCA::kReturnValueOffset == 3); 5472 STATIC_ASSERT(FCA::kReturnValueOffset == 3);
5474 STATIC_ASSERT(FCA::kReturnValueDefaultValueIndex == 2); 5473 STATIC_ASSERT(FCA::kReturnValueDefaultValueIndex == 2);
5475 STATIC_ASSERT(FCA::kIsolateIndex == 1); 5474 STATIC_ASSERT(FCA::kIsolateIndex == 1);
5476 STATIC_ASSERT(FCA::kHolderIndex == 0); 5475 STATIC_ASSERT(FCA::kHolderIndex == 0);
5477 STATIC_ASSERT(FCA::kArgsLength == 7); 5476 STATIC_ASSERT(FCA::kArgsLength == 6);
5478 5477
5479 DCHECK(argc.is_immediate() || a3.is(argc.reg())); 5478 DCHECK(argc.is_immediate() || a3.is(argc.reg()));
5480 5479
5481 // Save context, callee and call data. 5480 // Save context, callee and call data.
5482 __ Push(context, callee, call_data); 5481 __ Push(context, call_data);
5483 // Load context from callee. 5482 // Load context from callee.
5484 __ ld(context, FieldMemOperand(callee, JSFunction::kContextOffset)); 5483 __ ld(context, FieldMemOperand(callee, JSFunction::kContextOffset));
5485 5484
5486 Register scratch = call_data; 5485 Register scratch = call_data;
5487 if (!call_data_undefined) { 5486 if (!call_data_undefined) {
5488 __ LoadRoot(scratch, Heap::kUndefinedValueRootIndex); 5487 __ LoadRoot(scratch, Heap::kUndefinedValueRootIndex);
5489 } 5488 }
5490 // Push return value and default return value. 5489 // Push return value and default return value.
5491 __ Push(scratch, scratch); 5490 __ Push(scratch, scratch);
5492 __ li(scratch, Operand(ExternalReference::isolate_address(masm->isolate()))); 5491 __ li(scratch, Operand(ExternalReference::isolate_address(masm->isolate())));
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
5611 MemOperand(fp, 6 * kPointerSize), NULL); 5610 MemOperand(fp, 6 * kPointerSize), NULL);
5612 } 5611 }
5613 5612
5614 5613
5615 #undef __ 5614 #undef __
5616 5615
5617 } // namespace internal 5616 } // namespace internal
5618 } // namespace v8 5617 } // namespace v8
5619 5618
5620 #endif // V8_TARGET_ARCH_MIPS64 5619 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/ppc/code-stubs-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698