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

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

Issue 14170: Refactored the recording of source position in the generated code. The code g... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 years 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.cc ('k') | src/codegen-arm.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 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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 int min_index, 369 int min_index,
370 int range, 370 int range,
371 int default_index); 371 int default_index);
372 372
373 // Fast support for constant-Smi switches. Tests whether switch statement 373 // Fast support for constant-Smi switches. Tests whether switch statement
374 // permits optimization and calls GenerateFastCaseSwitch if it does. 374 // permits optimization and calls GenerateFastCaseSwitch if it does.
375 // Returns true if the fast-case switch was generated, and false if not. 375 // Returns true if the fast-case switch was generated, and false if not.
376 bool TryGenerateFastCaseSwitchStatement(SwitchStatement* node); 376 bool TryGenerateFastCaseSwitchStatement(SwitchStatement* node);
377 377
378 378
379 // Bottle-neck interface to call the Assembler to generate the statement 379 // Methods used to indicate which source code is generated for. Source
380 // position. This allows us to easily control whether statement positions 380 // positions are collected by the assembler and emitted with the relocation
381 // should be generated or not. 381 // information.
382 void RecordStatementPosition(Node* node); 382 void CodeForStatement(Node* node);
383 void CodeForSourcePosition(int pos);
383 384
384 bool is_eval_; // Tells whether code is generated for eval. 385 bool is_eval_; // Tells whether code is generated for eval.
385 Handle<Script> script_; 386 Handle<Script> script_;
386 List<DeferredCode*> deferred_; 387 List<DeferredCode*> deferred_;
387 388
388 // Assembler 389 // Assembler
389 MacroAssembler* masm_; // to generate code 390 MacroAssembler* masm_; // to generate code
390 391
391 // Code generation state 392 // Code generation state
392 Scope* scope_; 393 Scope* scope_;
393 VirtualFrame* frame_; 394 VirtualFrame* frame_;
394 Condition cc_reg_; 395 Condition cc_reg_;
395 CodeGenState* state_; 396 CodeGenState* state_;
396 bool is_inside_try_; 397 bool is_inside_try_;
397 int break_stack_height_; 398 int break_stack_height_;
398 399
399 // Labels 400 // Labels
400 Label function_return_; 401 Label function_return_;
401 402
402 friend class VirtualFrame; 403 friend class VirtualFrame;
403 friend class Reference; 404 friend class Reference;
404 405
405 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); 406 DISALLOW_COPY_AND_ASSIGN(CodeGenerator);
406 }; 407 };
407 408
408 } } // namespace v8::internal 409 } } // namespace v8::internal
409 410
410 #endif // V8_CODEGEN_ARM_H_ 411 #endif // V8_CODEGEN_ARM_H_
OLDNEW
« no previous file with comments | « src/codegen.cc ('k') | src/codegen-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698