OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |