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

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

Issue 3031005: [Isolates] Avoid dereferencing Isolate::Current() to check oddball identities... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: '' Created 10 years, 4 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/stub-cache.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 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
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
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
OLDNEW
« no previous file with comments | « src/stub-cache.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698