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

Side by Side Diff: src/ast-inl.h

Issue 7374002: Refactor allocation policies. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 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/ast.cc ('k') | src/compiler.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 25 matching lines...) Expand all
36 namespace v8 { 36 namespace v8 {
37 namespace internal { 37 namespace internal {
38 38
39 39
40 SwitchStatement::SwitchStatement(ZoneStringList* labels) 40 SwitchStatement::SwitchStatement(ZoneStringList* labels)
41 : BreakableStatement(labels, TARGET_FOR_ANONYMOUS), 41 : BreakableStatement(labels, TARGET_FOR_ANONYMOUS),
42 tag_(NULL), cases_(NULL) { 42 tag_(NULL), cases_(NULL) {
43 } 43 }
44 44
45 45
46 Block::Block(ZoneStringList* labels, int capacity, bool is_initializer_block) 46 Block::Block(Zone* zone,
47 ZoneStringList* labels,
48 int capacity,
49 bool is_initializer_block)
47 : BreakableStatement(labels, TARGET_FOR_NAMED_ONLY), 50 : BreakableStatement(labels, TARGET_FOR_NAMED_ONLY),
48 statements_(capacity), 51 statements_(zone, capacity),
49 is_initializer_block_(is_initializer_block) { 52 is_initializer_block_(is_initializer_block) {
50 } 53 }
51 54
52 55
53 BreakableStatement::BreakableStatement(ZoneStringList* labels, Type type) 56 BreakableStatement::BreakableStatement(ZoneStringList* labels, Type type)
54 : labels_(labels), 57 : labels_(labels),
55 type_(type), 58 type_(type),
56 entry_id_(GetNextId()), 59 entry_id_(GetNextId()),
57 exit_id_(GetNextId()) { 60 exit_id_(GetNextId()) {
58 ASSERT(labels == NULL || labels->length() > 0); 61 ASSERT(labels == NULL || labels->length() > 0);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 106
104 107
105 bool FunctionLiteral::strict_mode() const { 108 bool FunctionLiteral::strict_mode() const {
106 return scope()->is_strict_mode(); 109 return scope()->is_strict_mode();
107 } 110 }
108 111
109 112
110 } } // namespace v8::internal 113 } } // namespace v8::internal
111 114
112 #endif // V8_AST_INL_H_ 115 #endif // V8_AST_INL_H_
OLDNEW
« no previous file with comments | « src/ast.cc ('k') | src/compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698