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

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

Issue 583573003: MIPS: Move state sentinels into TypeFeedbackVector. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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/mips64/full-codegen-mips64.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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 2462 matching lines...) Expand 10 before | Expand all | Expand 10 after
2473 static void GenerateRecordCallTarget(MacroAssembler* masm) { 2473 static void GenerateRecordCallTarget(MacroAssembler* masm) {
2474 // Cache the called function in a feedback vector slot. Cache states 2474 // Cache the called function in a feedback vector slot. Cache states
2475 // are uninitialized, monomorphic (indicated by a JSFunction), and 2475 // are uninitialized, monomorphic (indicated by a JSFunction), and
2476 // megamorphic. 2476 // megamorphic.
2477 // a0 : number of arguments to the construct function 2477 // a0 : number of arguments to the construct function
2478 // a1 : the function to call 2478 // a1 : the function to call
2479 // a2 : Feedback vector 2479 // a2 : Feedback vector
2480 // a3 : slot in feedback vector (Smi) 2480 // a3 : slot in feedback vector (Smi)
2481 Label initialize, done, miss, megamorphic, not_array_function; 2481 Label initialize, done, miss, megamorphic, not_array_function;
2482 2482
2483 DCHECK_EQ(*TypeFeedbackInfo::MegamorphicSentinel(masm->isolate()), 2483 DCHECK_EQ(*TypeFeedbackVector::MegamorphicSentinel(masm->isolate()),
2484 masm->isolate()->heap()->megamorphic_symbol()); 2484 masm->isolate()->heap()->megamorphic_symbol());
2485 DCHECK_EQ(*TypeFeedbackInfo::UninitializedSentinel(masm->isolate()), 2485 DCHECK_EQ(*TypeFeedbackVector::UninitializedSentinel(masm->isolate()),
2486 masm->isolate()->heap()->uninitialized_symbol()); 2486 masm->isolate()->heap()->uninitialized_symbol());
2487 2487
2488 // Load the cache state into a4. 2488 // Load the cache state into a4.
2489 __ dsrl(a4, a3, 32 - kPointerSizeLog2); 2489 __ dsrl(a4, a3, 32 - kPointerSizeLog2);
2490 __ Daddu(a4, a2, Operand(a4)); 2490 __ Daddu(a4, a2, Operand(a4));
2491 __ ld(a4, FieldMemOperand(a4, FixedArray::kHeaderSize)); 2491 __ ld(a4, FieldMemOperand(a4, FixedArray::kHeaderSize));
2492 2492
2493 // A monomorphic cache hit or an already megamorphic state: invoke the 2493 // A monomorphic cache hit or an already megamorphic state: invoke the
2494 // function without changing the state. 2494 // function without changing the state.
2495 __ Branch(&done, eq, a4, Operand(a1)); 2495 __ Branch(&done, eq, a4, Operand(a1));
(...skipping 2401 matching lines...) Expand 10 before | Expand all | Expand 10 after
4897 MemOperand(fp, 6 * kPointerSize), 4897 MemOperand(fp, 6 * kPointerSize),
4898 NULL); 4898 NULL);
4899 } 4899 }
4900 4900
4901 4901
4902 #undef __ 4902 #undef __
4903 4903
4904 } } // namespace v8::internal 4904 } } // namespace v8::internal
4905 4905
4906 #endif // V8_TARGET_ARCH_MIPS64 4906 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « no previous file | src/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698