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

Side by Side Diff: src/arm/codegen-arm.h

Issue 108015: Restore stack backtrace tests removed in revision 1785. (Closed)
Patch Set: Addressed Kevin's comments Created 11 years, 7 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
« no previous file with comments | « no previous file | src/codegen.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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 Handle<Object> value, 296 Handle<Object> value,
297 bool reversed, 297 bool reversed,
298 OverwriteMode mode); 298 OverwriteMode mode);
299 299
300 void CallWithArguments(ZoneList<Expression*>* arguments, int position); 300 void CallWithArguments(ZoneList<Expression*>* arguments, int position);
301 301
302 // Control flow 302 // Control flow
303 void Branch(bool if_true, JumpTarget* target); 303 void Branch(bool if_true, JumpTarget* target);
304 void CheckStack(); 304 void CheckStack();
305 305
306 struct InlineRuntimeLUT {
307 void (CodeGenerator::*method)(ZoneList<Expression*>*);
308 const char* name;
309 };
310
311 static InlineRuntimeLUT* FindInlineRuntimeLUT(Handle<String> name);
306 bool CheckForInlineRuntimeCall(CallRuntime* node); 312 bool CheckForInlineRuntimeCall(CallRuntime* node);
313 static bool PatchInlineRuntimeEntry(Handle<String> name,
314 const InlineRuntimeLUT& new_entry,
315 InlineRuntimeLUT* old_entry);
316
307 Handle<JSFunction> BuildBoilerplate(FunctionLiteral* node); 317 Handle<JSFunction> BuildBoilerplate(FunctionLiteral* node);
308 void ProcessDeclarations(ZoneList<Declaration*>* declarations); 318 void ProcessDeclarations(ZoneList<Declaration*>* declarations);
309 319
310 Handle<Code> ComputeCallInitialize(int argc); 320 Handle<Code> ComputeCallInitialize(int argc);
311 Handle<Code> ComputeCallInitializeInLoop(int argc); 321 Handle<Code> ComputeCallInitializeInLoop(int argc);
312 322
313 // Declare global variables and functions in the given array of 323 // Declare global variables and functions in the given array of
314 // name/value pairs. 324 // name/value pairs.
315 void DeclareGlobals(Handle<FixedArray> pairs); 325 void DeclareGlobals(Handle<FixedArray> pairs);
316 326
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 // function_return_ does not jump to the true function return, but rather 436 // function_return_ does not jump to the true function return, but rather
427 // to some unlinking code). 437 // to some unlinking code).
428 bool function_return_is_shadowed_; 438 bool function_return_is_shadowed_;
429 439
430 // True when we are in code that expects the virtual frame to be fully 440 // True when we are in code that expects the virtual frame to be fully
431 // spilled. Some virtual frame function are disabled in DEBUG builds when 441 // spilled. Some virtual frame function are disabled in DEBUG builds when
432 // called from spilled code, because they do not leave the virtual frame 442 // called from spilled code, because they do not leave the virtual frame
433 // in a spilled state. 443 // in a spilled state.
434 bool in_spilled_code_; 444 bool in_spilled_code_;
435 445
446 static InlineRuntimeLUT kInlineRuntimeLUT[];
447
436 friend class VirtualFrame; 448 friend class VirtualFrame;
437 friend class JumpTarget; 449 friend class JumpTarget;
438 friend class Reference; 450 friend class Reference;
439 451
440 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); 452 DISALLOW_COPY_AND_ASSIGN(CodeGenerator);
441 }; 453 };
442 454
443 455
444 } } // namespace v8::internal 456 } } // namespace v8::internal
445 457
446 #endif // V8_ARM_CODEGEN_ARM_H_ 458 #endif // V8_ARM_CODEGEN_ARM_H_
OLDNEW
« no previous file with comments | « no previous file | src/codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698