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

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

Issue 15077: Merge bleeding-edge change 985, RecordStatementPosition reform, into... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/toiger/
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 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 int min_index, 328 int min_index,
329 int range, 329 int range,
330 int default_index); 330 int default_index);
331 331
332 // Fast support for constant-Smi switches. Tests whether switch statement 332 // Fast support for constant-Smi switches. Tests whether switch statement
333 // permits optimization and calls GenerateFastCaseSwitch if it does. 333 // permits optimization and calls GenerateFastCaseSwitch if it does.
334 // Returns true if the fast-case switch was generated, and false if not. 334 // Returns true if the fast-case switch was generated, and false if not.
335 bool TryGenerateFastCaseSwitchStatement(SwitchStatement* node); 335 bool TryGenerateFastCaseSwitchStatement(SwitchStatement* node);
336 336
337 337
338 // Bottle-neck interface to call the Assembler to generate the statement 338 // Methods used to indicate which source code is generated for. Source
339 // position. This allows us to easily control whether statement positions 339 // positions are collected by the assembler and emitted with the relocation
340 // should be generated or not. 340 // information.
341 void RecordStatementPosition(Node* node); 341 void CodeForStatement(Node* node);
342 void CodeForSourcePosition(int pos);
342 343
343 // Is the given jump target the actual (ie, non-shadowed) function return 344 // Is the given jump target the actual (ie, non-shadowed) function return
344 // target? 345 // target?
345 bool IsActualFunctionReturn(JumpTarget* target); 346 bool IsActualFunctionReturn(JumpTarget* target);
346 347
347 bool is_eval_; // Tells whether code is generated for eval. 348 bool is_eval_; // Tells whether code is generated for eval.
348 Handle<Script> script_; 349 Handle<Script> script_;
349 List<DeferredCode*> deferred_; 350 List<DeferredCode*> deferred_;
350 351
351 // Assembler 352 // Assembler
(...skipping 18 matching lines...) Expand all
370 friend class VirtualFrame; 371 friend class VirtualFrame;
371 friend class JumpTarget; 372 friend class JumpTarget;
372 friend class Reference; 373 friend class Reference;
373 374
374 DISALLOW_COPY_AND_ASSIGN(CodeGenerator); 375 DISALLOW_COPY_AND_ASSIGN(CodeGenerator);
375 }; 376 };
376 377
377 } } // namespace v8::internal 378 } } // namespace v8::internal
378 379
379 #endif // V8_CODEGEN_ARM_H_ 380 #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