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

Side by Side Diff: src/ia32/macro-assembler-ia32.cc

Issue 609843002: Refactor FrameAndConstantPoolScope and ConstantPoolUnavailableScope to be architecture independent (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
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_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/division-by-constant.h" 10 #include "src/base/division-by-constant.h"
(...skipping 880 matching lines...) Expand 10 before | Expand all | Expand 10 after
891 Nop(kNoCodeAgeSequenceLength - Assembler::kCallInstructionLength); 891 Nop(kNoCodeAgeSequenceLength - Assembler::kCallInstructionLength);
892 } else { 892 } else {
893 push(ebp); // Caller's frame pointer. 893 push(ebp); // Caller's frame pointer.
894 mov(ebp, esp); 894 mov(ebp, esp);
895 push(esi); // Callee's context. 895 push(esi); // Callee's context.
896 push(edi); // Callee's JS function. 896 push(edi); // Callee's JS function.
897 } 897 }
898 } 898 }
899 899
900 900
901 void MacroAssembler::EnterFrame(StackFrame::Type type) { 901 void MacroAssembler::EnterFrame(StackFrame::Type type,
902 bool load_constant_pool) {
rmcilroy 2014/09/26 15:54:57 Add an ASSERT that load_constant_pool is always fa
baixo 2014/10/02 09:18:21 Done.
902 push(ebp); 903 push(ebp);
903 mov(ebp, esp); 904 mov(ebp, esp);
904 push(esi); 905 push(esi);
905 push(Immediate(Smi::FromInt(type))); 906 push(Immediate(Smi::FromInt(type)));
906 push(Immediate(CodeObject())); 907 push(Immediate(CodeObject()));
907 if (emit_debug_code()) { 908 if (emit_debug_code()) {
908 cmp(Operand(esp, 0), Immediate(isolate()->factory()->undefined_value())); 909 cmp(Operand(esp, 0), Immediate(isolate()->factory()->undefined_value()));
909 Check(not_equal, kCodeObjectNotProperlyPatched); 910 Check(not_equal, kCodeObjectNotProperlyPatched);
910 } 911 }
911 } 912 }
(...skipping 2481 matching lines...) Expand 10 before | Expand all | Expand 10 after
3393 if (mag.shift > 0) sar(edx, mag.shift); 3394 if (mag.shift > 0) sar(edx, mag.shift);
3394 mov(eax, dividend); 3395 mov(eax, dividend);
3395 shr(eax, 31); 3396 shr(eax, 31);
3396 add(edx, eax); 3397 add(edx, eax);
3397 } 3398 }
3398 3399
3399 3400
3400 } } // namespace v8::internal 3401 } } // namespace v8::internal
3401 3402
3402 #endif // V8_TARGET_ARCH_IA32 3403 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698