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

Side by Side Diff: src/compiler.h

Issue 6720017: Add inline non-transcendental cache version of log to lithium. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 8 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 | « no previous file | src/hydrogen.cc » ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // Please note this interface returns shared function infos. This means you 232 // Please note this interface returns shared function infos. This means you
233 // need to call Factory::NewFunctionFromSharedFunctionInfo before you have a 233 // need to call Factory::NewFunctionFromSharedFunctionInfo before you have a
234 // real function with a context. 234 // real function with a context.
235 235
236 class Compiler : public AllStatic { 236 class Compiler : public AllStatic {
237 public: 237 public:
238 // Default maximum number of function optimization attempts before we 238 // Default maximum number of function optimization attempts before we
239 // give up. 239 // give up.
240 static const int kDefaultMaxOptCount = 10; 240 static const int kDefaultMaxOptCount = 10;
241 241
242 static const int kMaxInliningLevels = 3;
243
242 // All routines return a SharedFunctionInfo. 244 // All routines return a SharedFunctionInfo.
243 // If an error occurs an exception is raised and the return handle 245 // If an error occurs an exception is raised and the return handle
244 // contains NULL. 246 // contains NULL.
245 247
246 // Compile a String source within a context. 248 // Compile a String source within a context.
247 static Handle<SharedFunctionInfo> Compile(Handle<String> source, 249 static Handle<SharedFunctionInfo> Compile(Handle<String> source,
248 Handle<Object> script_name, 250 Handle<Object> script_name,
249 int line_offset, 251 int line_offset,
250 int column_offset, 252 int column_offset,
251 v8::Extension* extension, 253 v8::Extension* extension,
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 isolate->frame_element_constant_list()->Clear(); 298 isolate->frame_element_constant_list()->Clear();
297 isolate->result_constant_list()->Clear(); 299 isolate->result_constant_list()->Clear();
298 } 300 }
299 } 301 }
300 }; 302 };
301 303
302 304
303 } } // namespace v8::internal 305 } } // namespace v8::internal
304 306
305 #endif // V8_COMPILER_H_ 307 #endif // V8_COMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698