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

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

Issue 24134004: MIPS: Add HLoadRoot hydrogen instruction. (Closed) Base URL: https://github.com/v8/v8.git@gbl
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
« no previous file with comments | « no previous file | src/mips/lithium-mips.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 2984 matching lines...) Expand 10 before | Expand all | Expand 10 after
2995 // Non-instance prototype: Fetch prototype from constructor field 2995 // Non-instance prototype: Fetch prototype from constructor field
2996 // in initial map. 2996 // in initial map.
2997 __ bind(&non_instance); 2997 __ bind(&non_instance);
2998 __ lw(result, FieldMemOperand(result, Map::kConstructorOffset)); 2998 __ lw(result, FieldMemOperand(result, Map::kConstructorOffset));
2999 2999
3000 // All done. 3000 // All done.
3001 __ bind(&done); 3001 __ bind(&done);
3002 } 3002 }
3003 3003
3004 3004
3005 void LCodeGen::DoLoadRoot(LLoadRoot* instr) {
3006 Register result = ToRegister(instr->result());
3007 __ LoadRoot(result, instr->index());
3008 }
3009
3010
3005 void LCodeGen::DoLoadExternalArrayPointer( 3011 void LCodeGen::DoLoadExternalArrayPointer(
3006 LLoadExternalArrayPointer* instr) { 3012 LLoadExternalArrayPointer* instr) {
3007 Register to_reg = ToRegister(instr->result()); 3013 Register to_reg = ToRegister(instr->result());
3008 Register from_reg = ToRegister(instr->object()); 3014 Register from_reg = ToRegister(instr->object());
3009 __ lw(to_reg, FieldMemOperand(from_reg, 3015 __ lw(to_reg, FieldMemOperand(from_reg,
3010 ExternalArray::kExternalPointerOffset)); 3016 ExternalArray::kExternalPointerOffset));
3011 } 3017 }
3012 3018
3013 3019
3014 void LCodeGen::DoAccessArgumentsAt(LAccessArgumentsAt* instr) { 3020 void LCodeGen::DoAccessArgumentsAt(LAccessArgumentsAt* instr) {
(...skipping 2759 matching lines...) Expand 10 before | Expand all | Expand 10 after
5774 __ Subu(scratch, result, scratch); 5780 __ Subu(scratch, result, scratch);
5775 __ lw(result, FieldMemOperand(scratch, 5781 __ lw(result, FieldMemOperand(scratch,
5776 FixedArray::kHeaderSize - kPointerSize)); 5782 FixedArray::kHeaderSize - kPointerSize));
5777 __ bind(&done); 5783 __ bind(&done);
5778 } 5784 }
5779 5785
5780 5786
5781 #undef __ 5787 #undef __
5782 5788
5783 } } // namespace v8::internal 5789 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/mips/lithium-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698