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

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

Issue 209353006: Refactor optimized in hydrogen only runtime functions. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Patch for landing + rebase Created 6 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/arm64/full-codegen-arm64.cc ('k') | src/full-codegen.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 5373 matching lines...) Expand 10 before | Expand all | Expand 10 after
5384 __ Mov(result, 0); 5384 __ Mov(result, 0);
5385 5385
5386 PushSafepointRegistersScope scope(this, Safepoint::kWithRegisters); 5386 PushSafepointRegistersScope scope(this, Safepoint::kWithRegisters);
5387 __ Push(string); 5387 __ Push(string);
5388 // Push the index as a smi. This is safe because of the checks in 5388 // Push the index as a smi. This is safe because of the checks in
5389 // DoStringCharCodeAt above. 5389 // DoStringCharCodeAt above.
5390 Register index = ToRegister(instr->index()); 5390 Register index = ToRegister(instr->index());
5391 __ SmiTag(index); 5391 __ SmiTag(index);
5392 __ Push(index); 5392 __ Push(index);
5393 5393
5394 CallRuntimeFromDeferred(Runtime::kStringCharCodeAt, 2, instr, 5394 CallRuntimeFromDeferred(Runtime::kHiddenStringCharCodeAt, 2, instr,
5395 instr->context()); 5395 instr->context());
5396 __ AssertSmi(x0); 5396 __ AssertSmi(x0);
5397 __ SmiUntag(x0); 5397 __ SmiUntag(x0);
5398 __ StoreToSafepointRegisterSlot(x0, result); 5398 __ StoreToSafepointRegisterSlot(x0, result);
5399 } 5399 }
5400 5400
5401 5401
5402 void LCodeGen::DoStringCharFromCode(LStringCharFromCode* instr) { 5402 void LCodeGen::DoStringCharFromCode(LStringCharFromCode* instr) {
5403 class DeferredStringCharFromCode: public LDeferredCode { 5403 class DeferredStringCharFromCode: public LDeferredCode {
5404 public: 5404 public:
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
5873 __ Bind(&out_of_object); 5873 __ Bind(&out_of_object);
5874 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); 5874 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset));
5875 // Index is equal to negated out of object property index plus 1. 5875 // Index is equal to negated out of object property index plus 1.
5876 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); 5876 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2));
5877 __ Ldr(result, FieldMemOperand(result, 5877 __ Ldr(result, FieldMemOperand(result,
5878 FixedArray::kHeaderSize - kPointerSize)); 5878 FixedArray::kHeaderSize - kPointerSize));
5879 __ Bind(&done); 5879 __ Bind(&done);
5880 } 5880 }
5881 5881
5882 } } // namespace v8::internal 5882 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm64/full-codegen-arm64.cc ('k') | src/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698