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/lithium-codegen-ia32.cc

Issue 6588083: Add lazy deoptimization environment to instanceof by marking it as a call.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 9 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/arm/lithium-codegen-arm.cc ('k') | src/ia32/lithium-ia32.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1894 matching lines...) Expand 10 before | Expand all | Expand 10 after
1905 // offset to the location of the map check. 1905 // offset to the location of the map check.
1906 Register temp = ToRegister(instr->TempAt(0)); 1906 Register temp = ToRegister(instr->TempAt(0));
1907 ASSERT(temp.is(edi)); 1907 ASSERT(temp.is(edi));
1908 __ mov(InstanceofStub::right(), Immediate(instr->function())); 1908 __ mov(InstanceofStub::right(), Immediate(instr->function()));
1909 static const int kAdditionalDelta = 16; 1909 static const int kAdditionalDelta = 16;
1910 int delta = masm_->SizeOfCodeGeneratedSince(map_check) + kAdditionalDelta; 1910 int delta = masm_->SizeOfCodeGeneratedSince(map_check) + kAdditionalDelta;
1911 Label before_push_delta; 1911 Label before_push_delta;
1912 __ bind(&before_push_delta); 1912 __ bind(&before_push_delta);
1913 __ mov(temp, Immediate(delta)); 1913 __ mov(temp, Immediate(delta));
1914 __ StoreToSafepointRegisterSlot(temp, temp); 1914 __ StoreToSafepointRegisterSlot(temp, temp);
1915 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); 1915 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr, false);
1916 __ call(stub.GetCode(), RelocInfo::CODE_TARGET);
1917 ASSERT_EQ(kAdditionalDelta,
1918 masm_->SizeOfCodeGeneratedSince(&before_push_delta));
1919 RecordSafepointWithRegisters(
1920 instr->pointer_map(), 0, Safepoint::kNoDeoptimizationIndex);
1921 // Put the result value into the eax slot and restore all registers. 1916 // Put the result value into the eax slot and restore all registers.
1922 __ StoreToSafepointRegisterSlot(eax, eax); 1917 __ StoreToSafepointRegisterSlot(eax, eax);
1923 __ PopSafepointRegisters(); 1918 __ PopSafepointRegisters();
1924 } 1919 }
1925 1920
1926 1921
1927 static Condition ComputeCompareCondition(Token::Value op) { 1922 static Condition ComputeCompareCondition(Token::Value op) {
1928 switch (op) { 1923 switch (op) {
1929 case Token::EQ_STRICT: 1924 case Token::EQ_STRICT:
1930 case Token::EQ: 1925 case Token::EQ:
(...skipping 1940 matching lines...) Expand 10 before | Expand all | Expand 10 after
3871 ASSERT(osr_pc_offset_ == -1); 3866 ASSERT(osr_pc_offset_ == -1);
3872 osr_pc_offset_ = masm()->pc_offset(); 3867 osr_pc_offset_ = masm()->pc_offset();
3873 } 3868 }
3874 3869
3875 3870
3876 #undef __ 3871 #undef __
3877 3872
3878 } } // namespace v8::internal 3873 } } // namespace v8::internal
3879 3874
3880 #endif // V8_TARGET_ARCH_IA32 3875 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/ia32/lithium-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698