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

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

Issue 147573003: A64: Add a test for HToFastProperties. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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 | test/mjsunit/compiler/to-fast-properties.js » ('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 5142 matching lines...) Expand 10 before | Expand all | Expand 10 after
5153 5153
5154 void LCodeGen::DoThisFunction(LThisFunction* instr) { 5154 void LCodeGen::DoThisFunction(LThisFunction* instr) {
5155 Register result = ToRegister(instr->result()); 5155 Register result = ToRegister(instr->result());
5156 __ Ldr(result, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); 5156 __ Ldr(result, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset));
5157 } 5157 }
5158 5158
5159 5159
5160 void LCodeGen::DoToFastProperties(LToFastProperties* instr) { 5160 void LCodeGen::DoToFastProperties(LToFastProperties* instr) {
5161 ASSERT(ToRegister(instr->value()).Is(x0)); 5161 ASSERT(ToRegister(instr->value()).Is(x0));
5162 ASSERT(ToRegister(instr->result()).Is(x0)); 5162 ASSERT(ToRegister(instr->result()).Is(x0));
5163 ASM_UNIMPLEMENTED_BREAK("DoToFastProperties");
5164 __ Push(x0); 5163 __ Push(x0);
5165 CallRuntime(Runtime::kToFastProperties, 1, instr); 5164 CallRuntime(Runtime::kToFastProperties, 1, instr);
5166 } 5165 }
5167 5166
5168 5167
5169 void LCodeGen::DoRegExpLiteral(LRegExpLiteral* instr) { 5168 void LCodeGen::DoRegExpLiteral(LRegExpLiteral* instr) {
5170 Label materialized; 5169 Label materialized;
5171 // Registers will be used as follows: 5170 // Registers will be used as follows:
5172 // x7 = literals array. 5171 // x7 = literals array.
5173 // x1 = regexp literal. 5172 // x1 = regexp literal.
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
5497 __ Bind(&out_of_object); 5496 __ Bind(&out_of_object);
5498 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); 5497 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset));
5499 // Index is equal to negated out of object property index plus 1. 5498 // Index is equal to negated out of object property index plus 1.
5500 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); 5499 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2));
5501 __ Ldr(result, FieldMemOperand(result, 5500 __ Ldr(result, FieldMemOperand(result,
5502 FixedArray::kHeaderSize - kPointerSize)); 5501 FixedArray::kHeaderSize - kPointerSize));
5503 __ Bind(&done); 5502 __ Bind(&done);
5504 } 5503 }
5505 5504
5506 } } // namespace v8::internal 5505 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/compiler/to-fast-properties.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698