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

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

Issue 10534139: One Zone per CompilationInfo. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rename CompilationInfoZone to ZoneWithCompilationInfo 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 | « src/type-info.cc ('k') | src/x64/lithium-codegen-x64.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 1548 matching lines...) Expand 10 before | Expand all | Expand 10 after
1559 1559
1560 // If result_saved is true the result is on top of the stack. If 1560 // If result_saved is true the result is on top of the stack. If
1561 // result_saved is false the result is in rax. 1561 // result_saved is false the result is in rax.
1562 bool result_saved = false; 1562 bool result_saved = false;
1563 1563
1564 // Mark all computed expressions that are bound to a key that 1564 // Mark all computed expressions that are bound to a key that
1565 // is shadowed by a later occurrence of the same key. For the 1565 // is shadowed by a later occurrence of the same key. For the
1566 // marked expressions, no store code is emitted. 1566 // marked expressions, no store code is emitted.
1567 expr->CalculateEmitStore(zone()); 1567 expr->CalculateEmitStore(zone());
1568 1568
1569 AccessorTable accessor_table(isolate()->zone()); 1569 AccessorTable accessor_table(zone());
1570 for (int i = 0; i < expr->properties()->length(); i++) { 1570 for (int i = 0; i < expr->properties()->length(); i++) {
1571 ObjectLiteral::Property* property = expr->properties()->at(i); 1571 ObjectLiteral::Property* property = expr->properties()->at(i);
1572 if (property->IsCompileTimeValue()) continue; 1572 if (property->IsCompileTimeValue()) continue;
1573 1573
1574 Literal* key = property->key(); 1574 Literal* key = property->key();
1575 Expression* value = property->value(); 1575 Expression* value = property->value();
1576 if (!result_saved) { 1576 if (!result_saved) {
1577 __ push(rax); // Save result on the stack 1577 __ push(rax); // Save result on the stack
1578 result_saved = true; 1578 result_saved = true;
1579 } 1579 }
(...skipping 2955 matching lines...) Expand 10 before | Expand all | Expand 10 after
4535 *context_length = 0; 4535 *context_length = 0;
4536 return previous_; 4536 return previous_;
4537 } 4537 }
4538 4538
4539 4539
4540 #undef __ 4540 #undef __
4541 4541
4542 } } // namespace v8::internal 4542 } } // namespace v8::internal
4543 4543
4544 #endif // V8_TARGET_ARCH_X64 4544 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/type-info.cc ('k') | src/x64/lithium-codegen-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698