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

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

Issue 618213002: Reland "Use symbols instead of hidden properties for i18n markers." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix 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 | « src/hydrogen-instructions.cc ('k') | src/mips64/code-stubs-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_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 2502 matching lines...) Expand 10 before | Expand all | Expand 10 after
2513 // Make sure the function is the Array() function 2513 // Make sure the function is the Array() function
2514 __ LoadGlobalFunction(Context::ARRAY_FUNCTION_INDEX, t0); 2514 __ LoadGlobalFunction(Context::ARRAY_FUNCTION_INDEX, t0);
2515 __ Branch(&megamorphic, ne, a1, Operand(t0)); 2515 __ Branch(&megamorphic, ne, a1, Operand(t0));
2516 __ jmp(&done); 2516 __ jmp(&done);
2517 } 2517 }
2518 2518
2519 __ bind(&miss); 2519 __ bind(&miss);
2520 2520
2521 // A monomorphic miss (i.e, here the cache is not uninitialized) goes 2521 // A monomorphic miss (i.e, here the cache is not uninitialized) goes
2522 // megamorphic. 2522 // megamorphic.
2523 __ LoadRoot(at, Heap::kUninitializedSymbolRootIndex); 2523 __ LoadRoot(at, Heap::kuninitialized_symbolRootIndex);
2524 __ Branch(&initialize, eq, t0, Operand(at)); 2524 __ Branch(&initialize, eq, t0, Operand(at));
2525 // MegamorphicSentinel is an immortal immovable object (undefined) so no 2525 // MegamorphicSentinel is an immortal immovable object (undefined) so no
2526 // write-barrier is needed. 2526 // write-barrier is needed.
2527 __ bind(&megamorphic); 2527 __ bind(&megamorphic);
2528 __ sll(t0, a3, kPointerSizeLog2 - kSmiTagSize); 2528 __ sll(t0, a3, kPointerSizeLog2 - kSmiTagSize);
2529 __ Addu(t0, a2, Operand(t0)); 2529 __ Addu(t0, a2, Operand(t0));
2530 __ LoadRoot(at, Heap::kMegamorphicSymbolRootIndex); 2530 __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex);
2531 __ sw(at, FieldMemOperand(t0, FixedArray::kHeaderSize)); 2531 __ sw(at, FieldMemOperand(t0, FixedArray::kHeaderSize));
2532 __ jmp(&done); 2532 __ jmp(&done);
2533 2533
2534 // An uninitialized cache is patched with the function. 2534 // An uninitialized cache is patched with the function.
2535 __ bind(&initialize); 2535 __ bind(&initialize);
2536 if (!FLAG_pretenuring_call_new) { 2536 if (!FLAG_pretenuring_call_new) {
2537 // Make sure the function is the Array() function. 2537 // Make sure the function is the Array() function.
2538 __ LoadGlobalFunction(Context::ARRAY_FUNCTION_INDEX, t0); 2538 __ LoadGlobalFunction(Context::ARRAY_FUNCTION_INDEX, t0);
2539 __ Branch(&not_array_function, ne, a1, Operand(t0)); 2539 __ Branch(&not_array_function, ne, a1, Operand(t0));
2540 2540
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
2838 EmitSlowCase(masm, argc, &non_function); 2838 EmitSlowCase(masm, argc, &non_function);
2839 2839
2840 if (CallAsMethod()) { 2840 if (CallAsMethod()) {
2841 __ bind(&wrap); 2841 __ bind(&wrap);
2842 EmitWrapCase(masm, argc, &cont); 2842 EmitWrapCase(masm, argc, &cont);
2843 } 2843 }
2844 2844
2845 __ bind(&extra_checks_or_miss); 2845 __ bind(&extra_checks_or_miss);
2846 Label miss; 2846 Label miss;
2847 2847
2848 __ LoadRoot(at, Heap::kMegamorphicSymbolRootIndex); 2848 __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex);
2849 __ Branch(&slow_start, eq, t0, Operand(at)); 2849 __ Branch(&slow_start, eq, t0, Operand(at));
2850 __ LoadRoot(at, Heap::kUninitializedSymbolRootIndex); 2850 __ LoadRoot(at, Heap::kuninitialized_symbolRootIndex);
2851 __ Branch(&miss, eq, t0, Operand(at)); 2851 __ Branch(&miss, eq, t0, Operand(at));
2852 2852
2853 if (!FLAG_trace_ic) { 2853 if (!FLAG_trace_ic) {
2854 // We are going megamorphic. If the feedback is a JSFunction, it is fine 2854 // We are going megamorphic. If the feedback is a JSFunction, it is fine
2855 // to handle it here. More complex cases are dealt with in the runtime. 2855 // to handle it here. More complex cases are dealt with in the runtime.
2856 __ AssertNotSmi(t0); 2856 __ AssertNotSmi(t0);
2857 __ GetObjectType(t0, t1, t1); 2857 __ GetObjectType(t0, t1, t1);
2858 __ Branch(&miss, ne, t1, Operand(JS_FUNCTION_TYPE)); 2858 __ Branch(&miss, ne, t1, Operand(JS_FUNCTION_TYPE));
2859 __ sll(t0, a3, kPointerSizeLog2 - kSmiTagSize); 2859 __ sll(t0, a3, kPointerSizeLog2 - kSmiTagSize);
2860 __ Addu(t0, a2, Operand(t0)); 2860 __ Addu(t0, a2, Operand(t0));
2861 __ LoadRoot(at, Heap::kMegamorphicSymbolRootIndex); 2861 __ LoadRoot(at, Heap::kmegamorphic_symbolRootIndex);
2862 __ sw(at, FieldMemOperand(t0, FixedArray::kHeaderSize)); 2862 __ sw(at, FieldMemOperand(t0, FixedArray::kHeaderSize));
2863 __ Branch(&slow_start); 2863 __ Branch(&slow_start);
2864 } 2864 }
2865 2865
2866 // We are here because tracing is on or we are going monomorphic. 2866 // We are here because tracing is on or we are going monomorphic.
2867 __ bind(&miss); 2867 __ bind(&miss);
2868 GenerateMiss(masm); 2868 GenerateMiss(masm);
2869 2869
2870 // the slow case 2870 // the slow case
2871 __ bind(&slow_start); 2871 __ bind(&slow_start);
(...skipping 2026 matching lines...) Expand 10 before | Expand all | Expand 10 after
4898 MemOperand(fp, 6 * kPointerSize), 4898 MemOperand(fp, 6 * kPointerSize),
4899 NULL); 4899 NULL);
4900 } 4900 }
4901 4901
4902 4902
4903 #undef __ 4903 #undef __
4904 4904
4905 } } // namespace v8::internal 4905 } } // namespace v8::internal
4906 4906
4907 #endif // V8_TARGET_ARCH_MIPS 4907 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/mips64/code-stubs-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698