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

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

Issue 7307030: Implement ICs for FastDoubleArray loads and stores (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix asserts Created 9 years, 5 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/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/stub-cache-ia32.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 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 2026 matching lines...) Expand 10 before | Expand all | Expand 10 after
2037 2037
2038 2038
2039 void MacroAssembler::AssertFastElements(Register elements) { 2039 void MacroAssembler::AssertFastElements(Register elements) {
2040 if (emit_debug_code()) { 2040 if (emit_debug_code()) {
2041 Factory* factory = isolate()->factory(); 2041 Factory* factory = isolate()->factory();
2042 Label ok; 2042 Label ok;
2043 cmp(FieldOperand(elements, HeapObject::kMapOffset), 2043 cmp(FieldOperand(elements, HeapObject::kMapOffset),
2044 Immediate(factory->fixed_array_map())); 2044 Immediate(factory->fixed_array_map()));
2045 j(equal, &ok); 2045 j(equal, &ok);
2046 cmp(FieldOperand(elements, HeapObject::kMapOffset), 2046 cmp(FieldOperand(elements, HeapObject::kMapOffset),
2047 Immediate(factory->fixed_double_array_map()));
2048 j(equal, &ok);
2049 cmp(FieldOperand(elements, HeapObject::kMapOffset),
2047 Immediate(factory->fixed_cow_array_map())); 2050 Immediate(factory->fixed_cow_array_map()));
2048 j(equal, &ok); 2051 j(equal, &ok);
2049 Abort("JSObject with fast elements map has slow elements"); 2052 Abort("JSObject with fast elements map has slow elements");
2050 bind(&ok); 2053 bind(&ok);
2051 } 2054 }
2052 } 2055 }
2053 2056
2054 2057
2055 void MacroAssembler::Check(Condition cc, const char* msg) { 2058 void MacroAssembler::Check(Condition cc, const char* msg) {
2056 Label L; 2059 Label L;
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
2227 2230
2228 // Check that the code was patched as expected. 2231 // Check that the code was patched as expected.
2229 ASSERT(masm_.pc_ == address_ + size_); 2232 ASSERT(masm_.pc_ == address_ + size_);
2230 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); 2233 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap);
2231 } 2234 }
2232 2235
2233 2236
2234 } } // namespace v8::internal 2237 } } // namespace v8::internal
2235 2238
2236 #endif // V8_TARGET_ARCH_IA32 2239 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698