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

Side by Side Diff: src/crankshaft/mips/lithium-codegen-mips.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.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
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 5573 matching lines...) Expand 10 before | Expand all | Expand 10 after
5584 GenerateOsrPrologue(); 5584 GenerateOsrPrologue();
5585 } 5585 }
5586 5586
5587 5587
5588 void LCodeGen::DoForInPrepareMap(LForInPrepareMap* instr) { 5588 void LCodeGen::DoForInPrepareMap(LForInPrepareMap* instr) {
5589 Register result = ToRegister(instr->result()); 5589 Register result = ToRegister(instr->result());
5590 Register object = ToRegister(instr->object()); 5590 Register object = ToRegister(instr->object());
5591 __ And(at, object, kSmiTagMask); 5591 __ And(at, object, kSmiTagMask);
5592 DeoptimizeIf(eq, instr, Deoptimizer::kSmi, at, Operand(zero_reg)); 5592 DeoptimizeIf(eq, instr, Deoptimizer::kSmi, at, Operand(zero_reg));
5593 5593
5594 STATIC_ASSERT(FIRST_JS_PROXY_TYPE == FIRST_JS_RECEIVER_TYPE); 5594 STATIC_ASSERT(JS_PROXY_TYPE == FIRST_JS_RECEIVER_TYPE);
5595 __ GetObjectType(object, a1, a1); 5595 __ GetObjectType(object, a1, a1);
5596 DeoptimizeIf(le, instr, Deoptimizer::kNotAJavaScriptObject, a1, 5596 DeoptimizeIf(le, instr, Deoptimizer::kNotAJavaScriptObject, a1,
Toon Verwaest 2015/12/03 11:48:41 eq
5597 Operand(LAST_JS_PROXY_TYPE)); 5597 Operand(JS_PROXY_TYPE));
5598 5598
5599 Label use_cache, call_runtime; 5599 Label use_cache, call_runtime;
5600 DCHECK(object.is(a0)); 5600 DCHECK(object.is(a0));
5601 Register null_value = t1; 5601 Register null_value = t1;
5602 __ LoadRoot(null_value, Heap::kNullValueRootIndex); 5602 __ LoadRoot(null_value, Heap::kNullValueRootIndex);
5603 __ CheckEnumCache(null_value, &call_runtime); 5603 __ CheckEnumCache(null_value, &call_runtime);
5604 5604
5605 __ lw(result, FieldMemOperand(object, HeapObject::kMapOffset)); 5605 __ lw(result, FieldMemOperand(object, HeapObject::kMapOffset));
5606 __ Branch(&use_cache); 5606 __ Branch(&use_cache);
5607 5607
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
5734 __ Push(at, ToRegister(instr->function())); 5734 __ Push(at, ToRegister(instr->function()));
5735 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5735 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5736 RecordSafepoint(Safepoint::kNoLazyDeopt); 5736 RecordSafepoint(Safepoint::kNoLazyDeopt);
5737 } 5737 }
5738 5738
5739 5739
5740 #undef __ 5740 #undef __
5741 5741
5742 } // namespace internal 5742 } // namespace internal
5743 } // namespace v8 5743 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698