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

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

Issue 6250126: ARM: Add support for and, or and xor to the type recording binary op stub. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 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 | « src/arm/code-stubs-arm.cc ('k') | src/arm/full-codegen-arm.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1092 matching lines...) Expand 10 before | Expand all | Expand 10 after
1103 1103
1104 Register heap_number_map = r7; 1104 Register heap_number_map = r7;
1105 __ LoadRoot(heap_number_map, Heap::kHeapNumberMapRootIndex); 1105 __ LoadRoot(heap_number_map, Heap::kHeapNumberMapRootIndex);
1106 __ ldr(r3, FieldMemOperand(tos_register_, HeapNumber::kMapOffset)); 1106 __ ldr(r3, FieldMemOperand(tos_register_, HeapNumber::kMapOffset));
1107 __ cmp(r3, heap_number_map); 1107 __ cmp(r3, heap_number_map);
1108 // Not a number, fall back to the GenericBinaryOpStub. 1108 // Not a number, fall back to the GenericBinaryOpStub.
1109 __ b(ne, entry_label()); 1109 __ b(ne, entry_label());
1110 1110
1111 Register int32 = r2; 1111 Register int32 = r2;
1112 // Not a 32bits signed int, fall back to the GenericBinaryOpStub. 1112 // Not a 32bits signed int, fall back to the GenericBinaryOpStub.
1113 __ ConvertToInt32(tos_register_, int32, r4, r5, entry_label()); 1113 __ ConvertToInt32(tos_register_, int32, r4, r5, d0, entry_label());
1114 1114
1115 // tos_register_ (r0 or r1): Original heap number. 1115 // tos_register_ (r0 or r1): Original heap number.
1116 // int32: signed 32bits int. 1116 // int32: signed 32bits int.
1117 1117
1118 Label result_not_a_smi; 1118 Label result_not_a_smi;
1119 int shift_value = value_ & 0x1f; 1119 int shift_value = value_ & 0x1f;
1120 switch (op_) { 1120 switch (op_) {
1121 case Token::BIT_OR: __ orr(int32, int32, Operand(value_)); break; 1121 case Token::BIT_OR: __ orr(int32, int32, Operand(value_)); break;
1122 case Token::BIT_XOR: __ eor(int32, int32, Operand(value_)); break; 1122 case Token::BIT_XOR: __ eor(int32, int32, Operand(value_)); break;
1123 case Token::BIT_AND: __ and_(int32, int32, Operand(value_)); break; 1123 case Token::BIT_AND: __ and_(int32, int32, Operand(value_)); break;
(...skipping 6245 matching lines...) Expand 10 before | Expand all | Expand 10 after
7369 BinaryOpIC::GetName(runtime_operands_type_)); 7369 BinaryOpIC::GetName(runtime_operands_type_));
7370 return name_; 7370 return name_;
7371 } 7371 }
7372 7372
7373 7373
7374 #undef __ 7374 #undef __
7375 7375
7376 } } // namespace v8::internal 7376 } } // namespace v8::internal
7377 7377
7378 #endif // V8_TARGET_ARCH_ARM 7378 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/arm/full-codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698