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

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

Issue 26841009: Make TestJSArrayForAllocationMemento less awkward. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comments addressed. Created 7 years, 2 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/codegen-ia32.cc ('k') | src/ia32/macro-assembler-ia32.h » ('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 4795 matching lines...) Expand 10 before | Expand all | Expand 10 after
4806 Handle<Code> ic = (instr->strict_mode_flag() == kStrictMode) 4806 Handle<Code> ic = (instr->strict_mode_flag() == kStrictMode)
4807 ? isolate()->builtins()->KeyedStoreIC_Initialize_Strict() 4807 ? isolate()->builtins()->KeyedStoreIC_Initialize_Strict()
4808 : isolate()->builtins()->KeyedStoreIC_Initialize(); 4808 : isolate()->builtins()->KeyedStoreIC_Initialize();
4809 CallCode(ic, RelocInfo::CODE_TARGET, instr); 4809 CallCode(ic, RelocInfo::CODE_TARGET, instr);
4810 } 4810 }
4811 4811
4812 4812
4813 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { 4813 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) {
4814 Register object = ToRegister(instr->object()); 4814 Register object = ToRegister(instr->object());
4815 Register temp = ToRegister(instr->temp()); 4815 Register temp = ToRegister(instr->temp());
4816 __ TestJSArrayForAllocationMemento(object, temp); 4816 Label no_memento_found;
4817 __ TestJSArrayForAllocationMemento(object, temp, &no_memento_found);
4817 DeoptimizeIf(equal, instr->environment()); 4818 DeoptimizeIf(equal, instr->environment());
4819 __ bind(&no_memento_found);
4818 } 4820 }
4819 4821
4820 4822
4821 void LCodeGen::DoTransitionElementsKind(LTransitionElementsKind* instr) { 4823 void LCodeGen::DoTransitionElementsKind(LTransitionElementsKind* instr) {
4822 Register object_reg = ToRegister(instr->object()); 4824 Register object_reg = ToRegister(instr->object());
4823 4825
4824 Handle<Map> from_map = instr->original_map(); 4826 Handle<Map> from_map = instr->original_map();
4825 Handle<Map> to_map = instr->transitioned_map(); 4827 Handle<Map> to_map = instr->transitioned_map();
4826 ElementsKind from_kind = instr->from_kind(); 4828 ElementsKind from_kind = instr->from_kind();
4827 ElementsKind to_kind = instr->to_kind(); 4829 ElementsKind to_kind = instr->to_kind();
(...skipping 1566 matching lines...) Expand 10 before | Expand all | Expand 10 after
6394 FixedArray::kHeaderSize - kPointerSize)); 6396 FixedArray::kHeaderSize - kPointerSize));
6395 __ bind(&done); 6397 __ bind(&done);
6396 } 6398 }
6397 6399
6398 6400
6399 #undef __ 6401 #undef __
6400 6402
6401 } } // namespace v8::internal 6403 } } // namespace v8::internal
6402 6404
6403 #endif // V8_TARGET_ARCH_IA32 6405 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/ia32/macro-assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698