| OLD | NEW |
| 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 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1187 unsigned_left >>= shift_amount; | 1187 unsigned_left >>= shift_amount; |
| 1188 } | 1188 } |
| 1189 ASSERT(Smi::IsValid(static_cast<int32_t>(unsigned_left))); | 1189 ASSERT(Smi::IsValid(static_cast<int32_t>(unsigned_left))); |
| 1190 answer_object = Smi::FromInt(static_cast<int32_t>(unsigned_left)); | 1190 answer_object = Smi::FromInt(static_cast<int32_t>(unsigned_left)); |
| 1191 break; | 1191 break; |
| 1192 } | 1192 } |
| 1193 default: | 1193 default: |
| 1194 UNREACHABLE(); | 1194 UNREACHABLE(); |
| 1195 break; | 1195 break; |
| 1196 } | 1196 } |
| 1197 if (answer_object == HEAP->undefined_value()) { | 1197 if (answer_object->IsUndefined()) { |
| 1198 return false; | 1198 return false; |
| 1199 } | 1199 } |
| 1200 frame_->Push(Handle<Object>(answer_object)); | 1200 frame_->Push(Handle<Object>(answer_object)); |
| 1201 return true; | 1201 return true; |
| 1202 } | 1202 } |
| 1203 | 1203 |
| 1204 | 1204 |
| 1205 void CodeGenerator::JumpIfNotSmiUsingTypeInfo(Register reg, | 1205 void CodeGenerator::JumpIfNotSmiUsingTypeInfo(Register reg, |
| 1206 TypeInfo type, | 1206 TypeInfo type, |
| 1207 DeferredCode* deferred) { | 1207 DeferredCode* deferred) { |
| (...skipping 10903 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12111 #undef __ | 12111 #undef __ |
| 12112 | 12112 |
| 12113 void RecordWriteStub::Generate(MacroAssembler* masm) { | 12113 void RecordWriteStub::Generate(MacroAssembler* masm) { |
| 12114 masm->RecordWriteHelper(object_, addr_, scratch_); | 12114 masm->RecordWriteHelper(object_, addr_, scratch_); |
| 12115 masm->ret(0); | 12115 masm->ret(0); |
| 12116 } | 12116 } |
| 12117 | 12117 |
| 12118 } } // namespace v8::internal | 12118 } } // namespace v8::internal |
| 12119 | 12119 |
| 12120 #endif // V8_TARGET_ARCH_X64 | 12120 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |