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

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

Issue 7849017: Mechanical refactor to move ElementsKind type out of JSObject. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: latest changes Created 9 years, 3 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-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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 280
281 void MacroAssembler::CmpInstanceType(Register map, InstanceType type) { 281 void MacroAssembler::CmpInstanceType(Register map, InstanceType type) {
282 cmpb(FieldOperand(map, Map::kInstanceTypeOffset), 282 cmpb(FieldOperand(map, Map::kInstanceTypeOffset),
283 static_cast<int8_t>(type)); 283 static_cast<int8_t>(type));
284 } 284 }
285 285
286 286
287 void MacroAssembler::CheckFastElements(Register map, 287 void MacroAssembler::CheckFastElements(Register map,
288 Label* fail, 288 Label* fail,
289 Label::Distance distance) { 289 Label::Distance distance) {
290 STATIC_ASSERT(JSObject::FAST_ELEMENTS == 0); 290 STATIC_ASSERT(FAST_ELEMENTS == 0);
291 cmpb(FieldOperand(map, Map::kBitField2Offset), 291 cmpb(FieldOperand(map, Map::kBitField2Offset),
292 Map::kMaximumBitField2FastElementValue); 292 Map::kMaximumBitField2FastElementValue);
293 j(above, fail, distance); 293 j(above, fail, distance);
294 } 294 }
295 295
296 296
297 void MacroAssembler::CheckMap(Register obj, 297 void MacroAssembler::CheckMap(Register obj,
298 Handle<Map> map, 298 Handle<Map> map,
299 Label* fail, 299 Label* fail,
300 SmiCheckType smi_check_type) { 300 SmiCheckType smi_check_type) {
(...skipping 1983 matching lines...) Expand 10 before | Expand all | Expand 10 after
2284 2284
2285 // Check that the code was patched as expected. 2285 // Check that the code was patched as expected.
2286 ASSERT(masm_.pc_ == address_ + size_); 2286 ASSERT(masm_.pc_ == address_ + size_);
2287 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap); 2287 ASSERT(masm_.reloc_info_writer.pos() == address_ + size_ + Assembler::kGap);
2288 } 2288 }
2289 2289
2290 2290
2291 } } // namespace v8::internal 2291 } } // namespace v8::internal
2292 2292
2293 #endif // V8_TARGET_ARCH_IA32 2293 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698