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

Side by Side Diff: src/ia32/lithium-codegen-ia32.cc

Issue 10640021: Merged r11907 into 3.11 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.11
Patch Set: Created 8 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
« no previous file with comments | « no previous file | src/version.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 2341 matching lines...) Expand 10 before | Expand all | Expand 10 after
2352 } else if (operand->IsRegister()) { 2352 } else if (operand->IsRegister()) {
2353 __ push(ToRegister(operand)); 2353 __ push(ToRegister(operand));
2354 } else { 2354 } else {
2355 __ push(ToOperand(operand)); 2355 __ push(ToOperand(operand));
2356 } 2356 }
2357 } 2357 }
2358 2358
2359 2359
2360 // Check for cases where EmitLoadFieldOrConstantFunction needs to walk the 2360 // Check for cases where EmitLoadFieldOrConstantFunction needs to walk the
2361 // prototype chain, which causes unbounded code generation. 2361 // prototype chain, which causes unbounded code generation.
2362 static bool CompactEmit( 2362 static bool CompactEmit(SmallMapList* list,
2363 SmallMapList* list, Handle<String> name, int i, Isolate* isolate) { 2363 Handle<String> name,
2364 int i,
2365 Isolate* isolate) {
2366 Handle<Map> map = list->at(i);
2367 // If the map has ElementsKind transitions, we will generate map checks
2368 // for each kind in __ CompareMap(..., ALLOW_ELEMENTS_TRANSITION_MAPS).
2369 if (map->elements_transition_map() != NULL) return false;
2364 LookupResult lookup(isolate); 2370 LookupResult lookup(isolate);
2365 Handle<Map> map = list->at(i);
2366 map->LookupInDescriptors(NULL, *name, &lookup); 2371 map->LookupInDescriptors(NULL, *name, &lookup);
2367 return lookup.IsFound() && 2372 return lookup.IsFound() &&
2368 (lookup.type() == FIELD || lookup.type() == CONSTANT_FUNCTION); 2373 (lookup.type() == FIELD || lookup.type() == CONSTANT_FUNCTION);
2369 } 2374 }
2370 2375
2371 2376
2372 void LCodeGen::DoLoadNamedFieldPolymorphic(LLoadNamedFieldPolymorphic* instr) { 2377 void LCodeGen::DoLoadNamedFieldPolymorphic(LLoadNamedFieldPolymorphic* instr) {
2373 Register object = ToRegister(instr->object()); 2378 Register object = ToRegister(instr->object());
2374 Register result = ToRegister(instr->result()); 2379 Register result = ToRegister(instr->result());
2375 2380
(...skipping 2851 matching lines...) Expand 10 before | Expand all | Expand 10 after
5227 FixedArray::kHeaderSize - kPointerSize)); 5232 FixedArray::kHeaderSize - kPointerSize));
5228 __ bind(&done); 5233 __ bind(&done);
5229 } 5234 }
5230 5235
5231 5236
5232 #undef __ 5237 #undef __
5233 5238
5234 } } // namespace v8::internal 5239 } } // namespace v8::internal
5235 5240
5236 #endif // V8_TARGET_ARCH_IA32 5241 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « no previous file | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698