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

Side by Side Diff: src/x64/full-codegen-x64.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
« src/hydrogen.cc ('K') | « src/runtime.cc ('k') | no next file » | 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 1606 matching lines...) Expand 10 before | Expand all | Expand 10 after
1617 __ Push(Smi::FromInt(expr->literal_index())); 1617 __ Push(Smi::FromInt(expr->literal_index()));
1618 __ Push(constant_properties); 1618 __ Push(constant_properties);
1619 __ Push(Smi::FromInt(flags)); 1619 __ Push(Smi::FromInt(flags));
1620 __ CallRuntime(Runtime::kCreateObjectLiteral, 4); 1620 __ CallRuntime(Runtime::kCreateObjectLiteral, 4);
1621 } else { 1621 } else {
1622 __ movq(rdi, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); 1622 __ movq(rdi, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset));
1623 __ movq(rax, FieldOperand(rdi, JSFunction::kLiteralsOffset)); 1623 __ movq(rax, FieldOperand(rdi, JSFunction::kLiteralsOffset));
1624 __ Move(rbx, Smi::FromInt(expr->literal_index())); 1624 __ Move(rbx, Smi::FromInt(expr->literal_index()));
1625 __ Move(rcx, constant_properties); 1625 __ Move(rcx, constant_properties);
1626 __ Move(rdx, Smi::FromInt(flags)); 1626 __ Move(rdx, Smi::FromInt(flags));
1627 FastCloneShallowObjectStub stub(properties_count); 1627 FastCloneShallowObjectStub stub(DONT_TRACK_ALLOCATION_SITE,
1628 properties_count);
1628 __ CallStub(&stub); 1629 __ CallStub(&stub);
1629 } 1630 }
1630 1631
1631 // If result_saved is true the result is on top of the stack. If 1632 // If result_saved is true the result is on top of the stack. If
1632 // result_saved is false the result is in rax. 1633 // result_saved is false the result is in rax.
1633 bool result_saved = false; 1634 bool result_saved = false;
1634 1635
1635 // Mark all computed expressions that are bound to a key that 1636 // Mark all computed expressions that are bound to a key that
1636 // is shadowed by a later occurrence of the same key. For the 1637 // is shadowed by a later occurrence of the same key. For the
1637 // marked expressions, no store code is emitted. 1638 // marked expressions, no store code is emitted.
(...skipping 3309 matching lines...) Expand 10 before | Expand all | Expand 10 after
4947 4948
4948 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 4949 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
4949 Assembler::target_address_at(call_target_address)); 4950 Assembler::target_address_at(call_target_address));
4950 return OSR_AFTER_STACK_CHECK; 4951 return OSR_AFTER_STACK_CHECK;
4951 } 4952 }
4952 4953
4953 4954
4954 } } // namespace v8::internal 4955 } } // namespace v8::internal
4955 4956
4956 #endif // V8_TARGET_ARCH_X64 4957 #endif // V8_TARGET_ARCH_X64
OLDNEW
« src/hydrogen.cc ('K') | « src/runtime.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698