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

Side by Side Diff: src/compiler.cc

Issue 3186: Refactor the enum RelocMode changing the naming scheme from lower case to... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 years, 3 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/codegen-ia32.cc ('k') | src/debug.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 } 123 }
124 124
125 // Allocate function. 125 // Allocate function.
126 Handle<JSFunction> fun = 126 Handle<JSFunction> fun =
127 Factory::NewFunctionBoilerplate(lit->name(), 127 Factory::NewFunctionBoilerplate(lit->name(),
128 lit->materialized_literal_count(), 128 lit->materialized_literal_count(),
129 lit->contains_array_literal(), 129 lit->contains_array_literal(),
130 code); 130 code);
131 131
132 CodeGenerator::SetFunctionInfo(fun, lit->scope()->num_parameters(), 132 CodeGenerator::SetFunctionInfo(fun, lit->scope()->num_parameters(),
133 kNoPosition, 133 RelocInfo::kNoPosition,
134 lit->start_position(), lit->end_position(), 134 lit->start_position(), lit->end_position(),
135 lit->is_expression(), true, script); 135 lit->is_expression(), true, script);
136 136
137 // Hint to the runtime system used when allocating space for initial 137 // Hint to the runtime system used when allocating space for initial
138 // property space by setting the expected number of properties for 138 // property space by setting the expected number of properties for
139 // the instances of the function. 139 // the instances of the function.
140 SetExpectedNofPropertiesFromEstimate(fun, lit->expected_property_count()); 140 SetExpectedNofPropertiesFromEstimate(fun, lit->expected_property_count());
141 141
142 // Notify debugger 142 // Notify debugger
143 Debugger::OnAfterCompile(script, fun); 143 Debugger::OnAfterCompile(script, fun);
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 // Set the expected number of properties for instances. 283 // Set the expected number of properties for instances.
284 SetExpectedNofPropertiesFromEstimate(shared, lit->expected_property_count()); 284 SetExpectedNofPropertiesFromEstimate(shared, lit->expected_property_count());
285 285
286 // Check the function has compiled code. 286 // Check the function has compiled code.
287 ASSERT(shared->is_compiled()); 287 ASSERT(shared->is_compiled());
288 return true; 288 return true;
289 } 289 }
290 290
291 291
292 } } // namespace v8::internal 292 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/codegen-ia32.cc ('k') | src/debug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698