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

Side by Side Diff: src/mips/lithium-codegen-mips.cc

Issue 22984009: Merged r16150, r16174, r16175 into 3.19 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.19
Patch Set: Created 7 years, 4 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/hydrogen-instructions.cc ('k') | src/objects.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 // 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 5161 matching lines...) Expand 10 before | Expand all | Expand 10 after
5172 } 5172 }
5173 } 5173 }
5174 5174
5175 5175
5176 void LCodeGen::DoCheckFunction(LCheckFunction* instr) { 5176 void LCodeGen::DoCheckFunction(LCheckFunction* instr) {
5177 Register reg = ToRegister(instr->value()); 5177 Register reg = ToRegister(instr->value());
5178 Handle<JSFunction> target = instr->hydrogen()->target(); 5178 Handle<JSFunction> target = instr->hydrogen()->target();
5179 AllowDeferredHandleDereference smi_check; 5179 AllowDeferredHandleDereference smi_check;
5180 if (isolate()->heap()->InNewSpace(*target)) { 5180 if (isolate()->heap()->InNewSpace(*target)) {
5181 Register reg = ToRegister(instr->value()); 5181 Register reg = ToRegister(instr->value());
5182 Handle<Cell> cell = isolate()->factory()->NewPropertyCell(target); 5182 Handle<Cell> cell = isolate()->factory()->NewCell(target);
5183 __ li(at, Operand(Handle<Object>(cell))); 5183 __ li(at, Operand(Handle<Object>(cell)));
5184 __ lw(at, FieldMemOperand(at, Cell::kValueOffset)); 5184 __ lw(at, FieldMemOperand(at, Cell::kValueOffset));
5185 DeoptimizeIf(ne, instr->environment(), reg, 5185 DeoptimizeIf(ne, instr->environment(), reg,
5186 Operand(at)); 5186 Operand(at));
5187 } else { 5187 } else {
5188 DeoptimizeIf(ne, instr->environment(), reg, 5188 DeoptimizeIf(ne, instr->environment(), reg,
5189 Operand(target)); 5189 Operand(target));
5190 } 5190 }
5191 } 5191 }
5192 5192
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
5849 __ Subu(scratch, result, scratch); 5849 __ Subu(scratch, result, scratch);
5850 __ lw(result, FieldMemOperand(scratch, 5850 __ lw(result, FieldMemOperand(scratch,
5851 FixedArray::kHeaderSize - kPointerSize)); 5851 FixedArray::kHeaderSize - kPointerSize));
5852 __ bind(&done); 5852 __ bind(&done);
5853 } 5853 }
5854 5854
5855 5855
5856 #undef __ 5856 #undef __
5857 5857
5858 } } // namespace v8::internal 5858 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698