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

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

Issue 26827002: Allow FastCloneShallowObjectStub to use AllocationMementos. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
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 1583 matching lines...) Expand 10 before | Expand all | Expand 10 after
1594 __ push(Immediate(Smi::FromInt(expr->literal_index()))); 1594 __ push(Immediate(Smi::FromInt(expr->literal_index())));
1595 __ push(Immediate(constant_properties)); 1595 __ push(Immediate(constant_properties));
1596 __ push(Immediate(Smi::FromInt(flags))); 1596 __ push(Immediate(Smi::FromInt(flags)));
1597 __ CallRuntime(Runtime::kCreateObjectLiteral, 4); 1597 __ CallRuntime(Runtime::kCreateObjectLiteral, 4);
1598 } else { 1598 } else {
1599 __ mov(edi, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); 1599 __ mov(edi, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset));
1600 __ mov(eax, FieldOperand(edi, JSFunction::kLiteralsOffset)); 1600 __ mov(eax, FieldOperand(edi, JSFunction::kLiteralsOffset));
1601 __ mov(ebx, Immediate(Smi::FromInt(expr->literal_index()))); 1601 __ mov(ebx, Immediate(Smi::FromInt(expr->literal_index())));
1602 __ mov(ecx, Immediate(constant_properties)); 1602 __ mov(ecx, Immediate(constant_properties));
1603 __ mov(edx, Immediate(Smi::FromInt(flags))); 1603 __ mov(edx, Immediate(Smi::FromInt(flags)));
1604 FastCloneShallowObjectStub stub(properties_count); 1604 FastCloneShallowObjectStub stub(DONT_TRACK_ALLOCATION_SITE,
1605 properties_count);
1605 __ CallStub(&stub); 1606 __ CallStub(&stub);
1606 } 1607 }
1607 1608
1608 // If result_saved is true the result is on top of the stack. If 1609 // If result_saved is true the result is on top of the stack. If
1609 // result_saved is false the result is in eax. 1610 // result_saved is false the result is in eax.
1610 bool result_saved = false; 1611 bool result_saved = false;
1611 1612
1612 // Mark all computed expressions that are bound to a key that 1613 // Mark all computed expressions that are bound to a key that
1613 // is shadowed by a later occurrence of the same key. For the 1614 // is shadowed by a later occurrence of the same key. For the
1614 // marked expressions, no store code is emitted. 1615 // marked expressions, no store code is emitted.
(...skipping 3345 matching lines...) Expand 10 before | Expand all | Expand 10 after
4960 4961
4961 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 4962 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
4962 Assembler::target_address_at(call_target_address)); 4963 Assembler::target_address_at(call_target_address));
4963 return OSR_AFTER_STACK_CHECK; 4964 return OSR_AFTER_STACK_CHECK;
4964 } 4965 }
4965 4966
4966 4967
4967 } } // namespace v8::internal 4968 } } // namespace v8::internal
4968 4969
4969 #endif // V8_TARGET_ARCH_IA32 4970 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« src/hydrogen.cc ('K') | « src/hydrogen.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698