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

Side by Side Diff: src/ia32/macro-assembler-ia32.cc

Issue 6992072: Implement set trap for proxies, and revamp class hierarchy in preparation (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Renamed range constants for InstanceType enum. Created 9 years, 6 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
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 Label* fail) { 323 Label* fail) {
324 mov(map, FieldOperand(heap_object, HeapObject::kMapOffset)); 324 mov(map, FieldOperand(heap_object, HeapObject::kMapOffset));
325 IsInstanceJSObjectType(map, scratch, fail); 325 IsInstanceJSObjectType(map, scratch, fail);
326 } 326 }
327 327
328 328
329 void MacroAssembler::IsInstanceJSObjectType(Register map, 329 void MacroAssembler::IsInstanceJSObjectType(Register map,
330 Register scratch, 330 Register scratch,
331 Label* fail) { 331 Label* fail) {
332 movzx_b(scratch, FieldOperand(map, Map::kInstanceTypeOffset)); 332 movzx_b(scratch, FieldOperand(map, Map::kInstanceTypeOffset));
333 sub(Operand(scratch), Immediate(FIRST_JS_OBJECT_TYPE)); 333 sub(Operand(scratch), Immediate(FIRST_NONCALLABLE_SPEC_OBJECT_TYPE));
334 cmp(scratch, LAST_JS_OBJECT_TYPE - FIRST_JS_OBJECT_TYPE); 334 cmp(scratch,
335 LAST_NONCALLABLE_SPEC_OBJECT_TYPE - FIRST_NONCALLABLE_SPEC_OBJECT_TYPE);
335 j(above, fail); 336 j(above, fail);
336 } 337 }
337 338
338 339
339 void MacroAssembler::FCmp() { 340 void MacroAssembler::FCmp() {
340 if (CpuFeatures::IsSupported(CMOV)) { 341 if (CpuFeatures::IsSupported(CMOV)) {
341 fucomip(); 342 fucomip();
342 ffree(0); 343 ffree(0);
343 fincstp(); 344 fincstp();
344 } else { 345 } else {
(...skipping 1743 matching lines...) Expand 10 before | Expand all | Expand 10 after
2088 2089
2089 // Check that the code was patched as expected. 2090 // Check that the code was patched as expected.
2090 ASSERT(masm_.pc_ == address_ + size_); 2091 ASSERT(masm_.pc_ == address_ + size_);
2091 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); 2092 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap);
2092 } 2093 }
2093 2094
2094 2095
2095 } } // namespace v8::internal 2096 } } // namespace v8::internal
2096 2097
2097 #endif // V8_TARGET_ARCH_IA32 2098 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698