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

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

Issue 98603005: [v8-dev] ARM: Tidy up Throw and Mod (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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/arm/lithium-arm.cc ('k') | no next file » | 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 2029 matching lines...) Expand 10 before | Expand all | Expand 10 after
2040 MemOperand operand = BuildSeqStringOperand(string, instr->index(), encoding); 2040 MemOperand operand = BuildSeqStringOperand(string, instr->index(), encoding);
2041 if (encoding == String::ONE_BYTE_ENCODING) { 2041 if (encoding == String::ONE_BYTE_ENCODING) {
2042 __ strb(value, operand); 2042 __ strb(value, operand);
2043 } else { 2043 } else {
2044 __ strh(value, operand); 2044 __ strh(value, operand);
2045 } 2045 }
2046 } 2046 }
2047 2047
2048 2048
2049 void LCodeGen::DoThrow(LThrow* instr) { 2049 void LCodeGen::DoThrow(LThrow* instr) {
2050 Register input_reg = EmitLoadRegister(instr->value(), ip); 2050 __ push(ToRegister(instr->value()));
2051 __ push(input_reg);
2052 ASSERT(ToRegister(instr->context()).is(cp)); 2051 ASSERT(ToRegister(instr->context()).is(cp));
2053 CallRuntime(Runtime::kThrow, 1, instr); 2052 CallRuntime(Runtime::kThrow, 1, instr);
2054 2053
2055 if (FLAG_debug_code) { 2054 if (FLAG_debug_code) {
2056 __ stop("Unreachable code."); 2055 __ stop("Unreachable code.");
2057 } 2056 }
2058 } 2057 }
2059 2058
2060 2059
2061 void LCodeGen::DoAddI(LAddI* instr) { 2060 void LCodeGen::DoAddI(LAddI* instr) {
(...skipping 3828 matching lines...) Expand 10 before | Expand all | Expand 10 after
5890 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5889 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5891 __ ldr(result, FieldMemOperand(scratch, 5890 __ ldr(result, FieldMemOperand(scratch,
5892 FixedArray::kHeaderSize - kPointerSize)); 5891 FixedArray::kHeaderSize - kPointerSize));
5893 __ bind(&done); 5892 __ bind(&done);
5894 } 5893 }
5895 5894
5896 5895
5897 #undef __ 5896 #undef __
5898 5897
5899 } } // namespace v8::internal 5898 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698