Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 303 | 303 |
| 304 | 304 |
| 305 enum InLoopFlag { | 305 enum InLoopFlag { |
| 306 NOT_IN_LOOP, | 306 NOT_IN_LOOP, |
| 307 IN_LOOP | 307 IN_LOOP |
| 308 }; | 308 }; |
| 309 | 309 |
| 310 | 310 |
| 311 enum CallFunctionFlags { | 311 enum CallFunctionFlags { |
| 312 NO_CALL_FUNCTION_FLAGS = 0, | 312 NO_CALL_FUNCTION_FLAGS = 0, |
| 313 RECEIVER_MIGHT_BE_VALUE = 1 << 0 // Receiver might not be a JSObject. | 313 // Receiver might not be a JSObject. |
| 314 RECEIVER_MIGHT_BE_VALUE = 1 << 0, | |
| 315 // Receiver is a non-value but might be implicit. | |
|
Kevin Millikin (Chromium)
2011/05/18 15:57:23
As it is, these are used as if mutually exclusive,
| |
| 316 NON_VALUE_RECEIVER_MIGHT_BE_IMPLICIT = 1 << 1 | |
| 314 }; | 317 }; |
| 315 | 318 |
| 316 | 319 |
| 317 enum InlineCacheHolderFlag { | 320 enum InlineCacheHolderFlag { |
| 318 OWN_MAP, // For fast properties objects. | 321 OWN_MAP, // For fast properties objects. |
| 319 PROTOTYPE_MAP // For slow properties objects (except GlobalObjects). | 322 PROTOTYPE_MAP // For slow properties objects (except GlobalObjects). |
| 320 }; | 323 }; |
| 321 | 324 |
| 322 | 325 |
| 323 // Type of properties. | 326 // Type of properties. |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 490 }; | 493 }; |
| 491 | 494 |
| 492 | 495 |
| 493 // Used to specify if a macro instruction must perform a smi check on tagged | 496 // Used to specify if a macro instruction must perform a smi check on tagged |
| 494 // values. | 497 // values. |
| 495 enum SmiCheckType { | 498 enum SmiCheckType { |
| 496 DONT_DO_SMI_CHECK = 0, | 499 DONT_DO_SMI_CHECK = 0, |
| 497 DO_SMI_CHECK | 500 DO_SMI_CHECK |
| 498 }; | 501 }; |
| 499 | 502 |
| 503 | |
| 504 // Used to specify whether a receiver is implicitly or explicitly | |
| 505 // provided to a call. | |
| 506 enum ReceiverType { | |
|
Kevin Millikin (Chromium)
2011/05/18 15:57:23
Maybe this is not quite the right name. There is
Mads Ager (chromium)
2011/05/23 16:31:34
I agree. Your suggestion is better. Done.
| |
| 507 EXPLICIT_RECEIVER = 0, | |
| 508 IMPLICIT_RECEIVER | |
| 509 }; | |
| 510 | |
| 500 } } // namespace v8::internal | 511 } } // namespace v8::internal |
| 501 | 512 |
| 502 #endif // V8_V8GLOBALS_H_ | 513 #endif // V8_V8GLOBALS_H_ |
| OLD | NEW |