| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 437 | 437 |
| 438 | 438 |
| 439 // Used to specify if a macro instruction must perform a smi check on tagged | 439 // Used to specify if a macro instruction must perform a smi check on tagged |
| 440 // values. | 440 // values. |
| 441 enum SmiCheckType { | 441 enum SmiCheckType { |
| 442 DONT_DO_SMI_CHECK, | 442 DONT_DO_SMI_CHECK, |
| 443 DO_SMI_CHECK | 443 DO_SMI_CHECK |
| 444 }; | 444 }; |
| 445 | 445 |
| 446 | 446 |
| 447 // Used to specify whether a receiver is implicitly or explicitly | |
| 448 // provided to a call. | |
| 449 enum CallKind { | |
| 450 CALL_AS_METHOD, | |
| 451 CALL_AS_FUNCTION | |
| 452 }; | |
| 453 | |
| 454 | |
| 455 enum ScopeType { | 447 enum ScopeType { |
| 456 EVAL_SCOPE, // The top-level scope for an eval source. | 448 EVAL_SCOPE, // The top-level scope for an eval source. |
| 457 FUNCTION_SCOPE, // The top-level scope for a function. | 449 FUNCTION_SCOPE, // The top-level scope for a function. |
| 458 MODULE_SCOPE, // The scope introduced by a module literal | 450 MODULE_SCOPE, // The scope introduced by a module literal |
| 459 GLOBAL_SCOPE, // The top-level scope for a program or a top-level eval. | 451 GLOBAL_SCOPE, // The top-level scope for a program or a top-level eval. |
| 460 CATCH_SCOPE, // The scope introduced by catch. | 452 CATCH_SCOPE, // The scope introduced by catch. |
| 461 BLOCK_SCOPE, // The scope introduced by a new block. | 453 BLOCK_SCOPE, // The scope introduced by a new block. |
| 462 WITH_SCOPE // The scope introduced by with. | 454 WITH_SCOPE // The scope introduced by with. |
| 463 }; | 455 }; |
| 464 | 456 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 | 563 |
| 572 | 564 |
| 573 enum MinusZeroMode { | 565 enum MinusZeroMode { |
| 574 TREAT_MINUS_ZERO_AS_ZERO, | 566 TREAT_MINUS_ZERO_AS_ZERO, |
| 575 FAIL_ON_MINUS_ZERO | 567 FAIL_ON_MINUS_ZERO |
| 576 }; | 568 }; |
| 577 | 569 |
| 578 } } // namespace v8::internal | 570 } } // namespace v8::internal |
| 579 | 571 |
| 580 #endif // V8_V8GLOBALS_H_ | 572 #endif // V8_V8GLOBALS_H_ |
| OLD | NEW |