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

Side by Side Diff: src/arm/lithium-codegen-arm.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 | « no previous file | src/assert-scope.h » ('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 5231 matching lines...) Expand 10 before | Expand all | Expand 10 after
5242 } 5242 }
5243 } 5243 }
5244 5244
5245 5245
5246 void LCodeGen::DoCheckFunction(LCheckFunction* instr) { 5246 void LCodeGen::DoCheckFunction(LCheckFunction* instr) {
5247 Register reg = ToRegister(instr->value()); 5247 Register reg = ToRegister(instr->value());
5248 Handle<JSFunction> target = instr->hydrogen()->target(); 5248 Handle<JSFunction> target = instr->hydrogen()->target();
5249 AllowDeferredHandleDereference smi_check; 5249 AllowDeferredHandleDereference smi_check;
5250 if (isolate()->heap()->InNewSpace(*target)) { 5250 if (isolate()->heap()->InNewSpace(*target)) {
5251 Register reg = ToRegister(instr->value()); 5251 Register reg = ToRegister(instr->value());
5252 Handle<Cell> cell = isolate()->factory()->NewPropertyCell(target); 5252 Handle<Cell> cell = isolate()->factory()->NewCell(target);
5253 __ mov(ip, Operand(Handle<Object>(cell))); 5253 __ mov(ip, Operand(Handle<Object>(cell)));
5254 __ ldr(ip, FieldMemOperand(ip, Cell::kValueOffset)); 5254 __ ldr(ip, FieldMemOperand(ip, Cell::kValueOffset));
5255 __ cmp(reg, ip); 5255 __ cmp(reg, ip);
5256 } else { 5256 } else {
5257 __ cmp(reg, Operand(target)); 5257 __ cmp(reg, Operand(target));
5258 } 5258 }
5259 DeoptimizeIf(ne, instr->environment()); 5259 DeoptimizeIf(ne, instr->environment());
5260 } 5260 }
5261 5261
5262 5262
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
5882 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5882 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5883 __ ldr(result, FieldMemOperand(scratch, 5883 __ ldr(result, FieldMemOperand(scratch,
5884 FixedArray::kHeaderSize - kPointerSize)); 5884 FixedArray::kHeaderSize - kPointerSize));
5885 __ bind(&done); 5885 __ bind(&done);
5886 } 5886 }
5887 5887
5888 5888
5889 #undef __ 5889 #undef __
5890 5890
5891 } } // namespace v8::internal 5891 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/assert-scope.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698