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

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

Issue 23601038: Add HLoadRoot hydrogen instruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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/ia32/lithium-ia32.cc ('k') | src/x64/lithium-x64.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 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 2870 matching lines...) Expand 10 before | Expand all | Expand 10 after
2881 // Non-instance prototype: Fetch prototype from constructor field 2881 // Non-instance prototype: Fetch prototype from constructor field
2882 // in the function's map. 2882 // in the function's map.
2883 __ bind(&non_instance); 2883 __ bind(&non_instance);
2884 __ movq(result, FieldOperand(result, Map::kConstructorOffset)); 2884 __ movq(result, FieldOperand(result, Map::kConstructorOffset));
2885 2885
2886 // All done. 2886 // All done.
2887 __ bind(&done); 2887 __ bind(&done);
2888 } 2888 }
2889 2889
2890 2890
2891 void LCodeGen::DoLoadRoot(LLoadRoot* instr) {
2892 Register result = ToRegister(instr->result());
2893 __ LoadRoot(result, instr->index());
2894 }
2895
2896
2891 void LCodeGen::DoLoadExternalArrayPointer( 2897 void LCodeGen::DoLoadExternalArrayPointer(
2892 LLoadExternalArrayPointer* instr) { 2898 LLoadExternalArrayPointer* instr) {
2893 Register result = ToRegister(instr->result()); 2899 Register result = ToRegister(instr->result());
2894 Register input = ToRegister(instr->object()); 2900 Register input = ToRegister(instr->object());
2895 __ movq(result, FieldOperand(input, 2901 __ movq(result, FieldOperand(input,
2896 ExternalPixelArray::kExternalPointerOffset)); 2902 ExternalPixelArray::kExternalPointerOffset));
2897 } 2903 }
2898 2904
2899 2905
2900 void LCodeGen::DoAccessArgumentsAt(LAccessArgumentsAt* instr) { 2906 void LCodeGen::DoAccessArgumentsAt(LAccessArgumentsAt* instr) {
(...skipping 2619 matching lines...) Expand 10 before | Expand all | Expand 10 after
5520 FixedArray::kHeaderSize - kPointerSize)); 5526 FixedArray::kHeaderSize - kPointerSize));
5521 __ bind(&done); 5527 __ bind(&done);
5522 } 5528 }
5523 5529
5524 5530
5525 #undef __ 5531 #undef __
5526 5532
5527 } } // namespace v8::internal 5533 } } // namespace v8::internal
5528 5534
5529 #endif // V8_TARGET_ARCH_X64 5535 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698