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

Side by Side Diff: src/crankshaft/mips64/lithium-codegen-mips64.cc

Issue 1496503002: [runtime] [proxy] removing JSFunctionProxy and related code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: doh Created 5 years 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
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/crankshaft/mips64/lithium-codegen-mips64.h" 5 #include "src/crankshaft/mips64/lithium-codegen-mips64.h"
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/crankshaft/hydrogen-osr.h" 9 #include "src/crankshaft/hydrogen-osr.h"
10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h" 10 #include "src/crankshaft/mips64/lithium-gap-resolver-mips64.h"
(...skipping 5763 matching lines...) Expand 10 before | Expand all | Expand 10 after
5774 } 5774 }
5775 5775
5776 5776
5777 void LCodeGen::DoForInPrepareMap(LForInPrepareMap* instr) { 5777 void LCodeGen::DoForInPrepareMap(LForInPrepareMap* instr) {
5778 Register result = ToRegister(instr->result()); 5778 Register result = ToRegister(instr->result());
5779 Register object = ToRegister(instr->object()); 5779 Register object = ToRegister(instr->object());
5780 5780
5781 __ And(at, object, kSmiTagMask); 5781 __ And(at, object, kSmiTagMask);
5782 DeoptimizeIf(eq, instr, Deoptimizer::kSmi, at, Operand(zero_reg)); 5782 DeoptimizeIf(eq, instr, Deoptimizer::kSmi, at, Operand(zero_reg));
5783 5783
5784 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_JS_RECEIVER_TYPE); 5784 STATIC_ASSERT(JS_PROXY_TYPE == FIRST_JS_RECEIVER_TYPE);
5785 __ GetObjectType(object, a1, a1); 5785 __ GetObjectType(object, a1, a1);
5786 DeoptimizeIf(le, instr, Deoptimizer::kNotAJavaScriptObject, a1, 5786 DeoptimizeIf(le, instr, Deoptimizer::kNotAJavaScriptObject, a1,
Toon Verwaest 2015/12/03 11:48:41 eq
5787 Operand(LAST_JS_PROXY_TYPE)); 5787 Operand(JS_PROXY_TYPE));
5788 5788
5789 Label use_cache, call_runtime; 5789 Label use_cache, call_runtime;
5790 DCHECK(object.is(a0)); 5790 DCHECK(object.is(a0));
5791 Register null_value = a5; 5791 Register null_value = a5;
5792 __ LoadRoot(null_value, Heap::kNullValueRootIndex); 5792 __ LoadRoot(null_value, Heap::kNullValueRootIndex);
5793 __ CheckEnumCache(null_value, &call_runtime); 5793 __ CheckEnumCache(null_value, &call_runtime);
5794 5794
5795 __ ld(result, FieldMemOperand(object, HeapObject::kMapOffset)); 5795 __ ld(result, FieldMemOperand(object, HeapObject::kMapOffset));
5796 __ Branch(&use_cache); 5796 __ Branch(&use_cache);
5797 5797
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
5922 __ Push(at, ToRegister(instr->function())); 5922 __ Push(at, ToRegister(instr->function()));
5923 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5923 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5924 RecordSafepoint(Safepoint::kNoLazyDeopt); 5924 RecordSafepoint(Safepoint::kNoLazyDeopt);
5925 } 5925 }
5926 5926
5927 5927
5928 #undef __ 5928 #undef __
5929 5929
5930 } // namespace internal 5930 } // namespace internal
5931 } // namespace v8 5931 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698