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

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

Issue 1451273002: [turbofan] Move JSCallFunction specialization to JSCallReducer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix arm64 failures. Created 5 years, 1 month 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 | « no previous file | src/arm64/code-stubs-arm64.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_ARM 5 #if V8_TARGET_ARCH_ARM
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/bootstrapper.h" 8 #include "src/bootstrapper.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 2541 matching lines...) Expand 10 before | Expand all | Expand 10 after
2552 // Goto miss case if we do not have a function. 2552 // Goto miss case if we do not have a function.
2553 __ CompareObjectType(r1, r4, r4, JS_FUNCTION_TYPE); 2553 __ CompareObjectType(r1, r4, r4, JS_FUNCTION_TYPE);
2554 __ b(ne, &miss); 2554 __ b(ne, &miss);
2555 2555
2556 // Make sure the function is not the Array() function, which requires special 2556 // Make sure the function is not the Array() function, which requires special
2557 // behavior on MISS. 2557 // behavior on MISS.
2558 __ LoadGlobalFunction(Context::ARRAY_FUNCTION_INDEX, r4); 2558 __ LoadGlobalFunction(Context::ARRAY_FUNCTION_INDEX, r4);
2559 __ cmp(r1, r4); 2559 __ cmp(r1, r4);
2560 __ b(eq, &miss); 2560 __ b(eq, &miss);
2561 2561
2562 // Make sure the function belongs to the same native context (which implies
2563 // the same global object).
2564 __ ldr(r4, FieldMemOperand(r1, JSFunction::kContextOffset));
2565 __ ldr(r4, ContextOperand(r4, Context::GLOBAL_OBJECT_INDEX));
2566 __ ldr(ip, GlobalObjectOperand());
2567 __ cmp(r4, ip);
2568 __ b(ne, &miss);
2569
2562 // Update stats. 2570 // Update stats.
2563 __ ldr(r4, FieldMemOperand(r2, with_types_offset)); 2571 __ ldr(r4, FieldMemOperand(r2, with_types_offset));
2564 __ add(r4, r4, Operand(Smi::FromInt(1))); 2572 __ add(r4, r4, Operand(Smi::FromInt(1)));
2565 __ str(r4, FieldMemOperand(r2, with_types_offset)); 2573 __ str(r4, FieldMemOperand(r2, with_types_offset));
2566 2574
2567 // Initialize the call counter. 2575 // Initialize the call counter.
2568 __ Move(r5, Operand(Smi::FromInt(CallICNexus::kCallCountIncrement))); 2576 __ Move(r5, Operand(Smi::FromInt(CallICNexus::kCallCountIncrement)));
2569 __ add(r4, r2, Operand::PointerOffsetFromSmiKey(r3)); 2577 __ add(r4, r2, Operand::PointerOffsetFromSmiKey(r3));
2570 __ str(r5, FieldMemOperand(r4, FixedArray::kHeaderSize + kPointerSize)); 2578 __ str(r5, FieldMemOperand(r4, FixedArray::kHeaderSize + kPointerSize));
2571 2579
(...skipping 2867 matching lines...) Expand 10 before | Expand all | Expand 10 after
5439 MemOperand(fp, 6 * kPointerSize), NULL); 5447 MemOperand(fp, 6 * kPointerSize), NULL);
5440 } 5448 }
5441 5449
5442 5450
5443 #undef __ 5451 #undef __
5444 5452
5445 } // namespace internal 5453 } // namespace internal
5446 } // namespace v8 5454 } // namespace v8
5447 5455
5448 #endif // V8_TARGET_ARCH_ARM 5456 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm64/code-stubs-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698