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

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

Issue 18592: Experimental: add a function to the API for recording assembler... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
Patch Set: Created 11 years, 10 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.cc ('k') | src/codegen-ia32.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 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 int default_index); 455 int default_index);
456 456
457 // Fast support for constant-Smi switches. Tests whether switch statement 457 // Fast support for constant-Smi switches. Tests whether switch statement
458 // permits optimization and calls GenerateFastCaseSwitch if it does. 458 // permits optimization and calls GenerateFastCaseSwitch if it does.
459 // Returns true if the fast-case switch was generated, and false if not. 459 // Returns true if the fast-case switch was generated, and false if not.
460 bool TryGenerateFastCaseSwitchStatement(SwitchStatement* node); 460 bool TryGenerateFastCaseSwitchStatement(SwitchStatement* node);
461 461
462 // Methods used to indicate which source code is generated for. Source 462 // Methods used to indicate which source code is generated for. Source
463 // positions are collected by the assembler and emitted with the relocation 463 // positions are collected by the assembler and emitted with the relocation
464 // information. 464 // information.
465 void CodeForStatement(Node* node); 465 void CodeForFunctionPosition(FunctionLiteral* fun);
466 void CodeForStatementPosition(Node* node);
466 void CodeForSourcePosition(int pos); 467 void CodeForSourcePosition(int pos);
467 468
468 bool is_eval_; // Tells whether code is generated for eval. 469 bool is_eval_; // Tells whether code is generated for eval.
469 470
470 #ifdef DEBUG 471 #ifdef DEBUG
471 // True if the registers are valid for entry to a block. There should be 472 // True if the registers are valid for entry to a block. There should be
472 // no frame-external references to eax, ebx, ecx, edx, or edi. 473 // no frame-external references to eax, ebx, ecx, edx, or edi.
473 bool HasValidEntryRegisters(); 474 bool HasValidEntryRegisters();
474 #endif 475 #endif
475 476
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 cgen_->set_in_spilled_code(false); 516 cgen_->set_in_spilled_code(false);
516 GetValue(typeof_state); 517 GetValue(typeof_state);
517 cgen_->frame()->SpillAll(); 518 cgen_->frame()->SpillAll();
518 cgen_->set_in_spilled_code(true); 519 cgen_->set_in_spilled_code(true);
519 } 520 }
520 521
521 522
522 } } // namespace v8::internal 523 } } // namespace v8::internal
523 524
524 #endif // V8_CODEGEN_IA32_H_ 525 #endif // V8_CODEGEN_IA32_H_
OLDNEW
« no previous file with comments | « src/codegen.cc ('k') | src/codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698