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

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

Issue 2645543002: Back strongly rooted literals CLs out of the tree for branch cut (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « src/builtins/arm64/builtins-arm64.cc ('k') | src/builtins/mips/builtins-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 #if V8_TARGET_ARCH_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/codegen.h" 8 #include "src/codegen.h"
9 #include "src/deoptimizer.h" 9 #include "src/deoptimizer.h"
10 #include "src/full-codegen/full-codegen.h" 10 #include "src/full-codegen/full-codegen.h"
(...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after
1036 __ push(argument_count); 1036 __ push(argument_count);
1037 __ push(new_target); 1037 __ push(new_target);
1038 __ push(closure); 1038 __ push(closure);
1039 1039
1040 Register map = argument_count; 1040 Register map = argument_count;
1041 Register index = ebx; 1041 Register index = ebx;
1042 __ mov(map, FieldOperand(closure, JSFunction::kSharedFunctionInfoOffset)); 1042 __ mov(map, FieldOperand(closure, JSFunction::kSharedFunctionInfoOffset));
1043 __ mov(map, FieldOperand(map, SharedFunctionInfo::kOptimizedCodeMapOffset)); 1043 __ mov(map, FieldOperand(map, SharedFunctionInfo::kOptimizedCodeMapOffset));
1044 __ mov(index, FieldOperand(map, FixedArray::kLengthOffset)); 1044 __ mov(index, FieldOperand(map, FixedArray::kLengthOffset));
1045 __ cmp(index, Immediate(Smi::FromInt(2))); 1045 __ cmp(index, Immediate(Smi::FromInt(2)));
1046 __ j(less, &try_shared); 1046 __ j(less, &gotta_call_runtime);
1047 1047
1048 // edx : native context 1048 // edx : native context
1049 // ebx : length / index 1049 // ebx : length / index
1050 // eax : optimized code map 1050 // eax : optimized code map
1051 // stack[0] : new target 1051 // stack[0] : new target
1052 // stack[4] : closure 1052 // stack[4] : closure
1053 Register native_context = edx; 1053 Register native_context = edx;
1054 __ mov(native_context, NativeContextOperand()); 1054 __ mov(native_context, NativeContextOperand());
1055 1055
1056 __ bind(&loop_top); 1056 __ bind(&loop_top);
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
1096 __ mov(closure, ebx); 1096 __ mov(closure, ebx);
1097 __ pop(new_target); 1097 __ pop(new_target);
1098 __ pop(argument_count); 1098 __ pop(argument_count);
1099 __ jmp(entry); 1099 __ jmp(entry);
1100 1100
1101 __ bind(&loop_bottom); 1101 __ bind(&loop_bottom);
1102 __ sub(index, Immediate(Smi::FromInt(SharedFunctionInfo::kEntryLength))); 1102 __ sub(index, Immediate(Smi::FromInt(SharedFunctionInfo::kEntryLength)));
1103 __ cmp(index, Immediate(Smi::FromInt(1))); 1103 __ cmp(index, Immediate(Smi::FromInt(1)));
1104 __ j(greater, &loop_top); 1104 __ j(greater, &loop_top);
1105 1105
1106 // We found no code. Try the SharedFunctionInfo. 1106 // We found no code.
1107 __ jmp(&gotta_call_runtime);
1108
1107 __ bind(&try_shared); 1109 __ bind(&try_shared);
1108 __ pop(closure); 1110 __ pop(closure);
1109 __ pop(new_target); 1111 __ pop(new_target);
1110 __ pop(argument_count); 1112 __ pop(argument_count);
1111 __ mov(entry, FieldOperand(closure, JSFunction::kSharedFunctionInfoOffset)); 1113 __ mov(entry, FieldOperand(closure, JSFunction::kSharedFunctionInfoOffset));
1112 // Is the shared function marked for tier up? 1114 // Is the shared function marked for tier up?
1113 __ test_b(FieldOperand(entry, SharedFunctionInfo::kMarkedForTierUpByteOffset), 1115 __ test_b(FieldOperand(entry, SharedFunctionInfo::kMarkedForTierUpByteOffset),
1114 Immediate(1 << SharedFunctionInfo::kMarkedForTierUpBitWithinByte)); 1116 Immediate(1 << SharedFunctionInfo::kMarkedForTierUpBitWithinByte));
1115 __ j(not_zero, &gotta_call_runtime_no_stack); 1117 __ j(not_zero, &gotta_call_runtime_no_stack);
1116 1118
(...skipping 2145 matching lines...) Expand 10 before | Expand all | Expand 10 after
3262 3264
3263 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) { 3265 void Builtins::Generate_InterpreterOnStackReplacement(MacroAssembler* masm) {
3264 Generate_OnStackReplacementHelper(masm, true); 3266 Generate_OnStackReplacementHelper(masm, true);
3265 } 3267 }
3266 3268
3267 #undef __ 3269 #undef __
3268 } // namespace internal 3270 } // namespace internal
3269 } // namespace v8 3271 } // namespace v8
3270 3272
3271 #endif // V8_TARGET_ARCH_IA32 3273 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/builtins/arm64/builtins-arm64.cc ('k') | src/builtins/mips/builtins-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698