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 4436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4447 V(LOAD_IC) \ | 4447 V(LOAD_IC) \ |
4448 V(KEYED_LOAD_IC) \ | 4448 V(KEYED_LOAD_IC) \ |
4449 V(CALL_IC) \ | 4449 V(CALL_IC) \ |
4450 V(KEYED_CALL_IC) \ | 4450 V(KEYED_CALL_IC) \ |
4451 V(STORE_IC) \ | 4451 V(STORE_IC) \ |
4452 V(KEYED_STORE_IC) \ | 4452 V(KEYED_STORE_IC) \ |
4453 V(UNARY_OP_IC) \ | 4453 V(UNARY_OP_IC) \ |
4454 V(BINARY_OP_IC) \ | 4454 V(BINARY_OP_IC) \ |
4455 V(COMPARE_IC) \ | 4455 V(COMPARE_IC) \ |
4456 V(COMPARE_NIL_IC) \ | 4456 V(COMPARE_NIL_IC) \ |
4457 V(TO_BOOLEAN_IC) | 4457 V(TO_BOOLEAN_IC) \ |
| 4458 V(REGEXP) |
| 4459 |
4458 | 4460 |
4459 enum Kind { | 4461 enum Kind { |
4460 #define DEFINE_CODE_KIND_ENUM(name) name, | 4462 #define DEFINE_CODE_KIND_ENUM(name) name, |
4461 CODE_KIND_LIST(DEFINE_CODE_KIND_ENUM) | 4463 CODE_KIND_LIST(DEFINE_CODE_KIND_ENUM) |
4462 #undef DEFINE_CODE_KIND_ENUM | 4464 #undef DEFINE_CODE_KIND_ENUM |
4463 | 4465 |
4464 // Pseudo-kinds. | 4466 // Pseudo-kinds. |
4465 LAST_CODE_KIND = TO_BOOLEAN_IC, | 4467 LAST_CODE_KIND = TO_BOOLEAN_IC, |
4466 REGEXP = BUILTIN, | |
4467 FIRST_IC_KIND = LOAD_IC, | 4468 FIRST_IC_KIND = LOAD_IC, |
4468 LAST_IC_KIND = TO_BOOLEAN_IC | 4469 LAST_IC_KIND = TO_BOOLEAN_IC |
4469 }; | 4470 }; |
4470 | 4471 |
4471 // No more than 16 kinds. The value is currently encoded in four bits in | 4472 // No more than 16 kinds. The value is currently encoded in four bits in |
4472 // Flags. | 4473 // Flags. |
4473 STATIC_ASSERT(LAST_CODE_KIND < 16); | 4474 STATIC_ASSERT(LAST_CODE_KIND < 16); |
4474 | 4475 |
4475 static const char* Kind2String(Kind kind); | 4476 static const char* Kind2String(Kind kind); |
4476 | 4477 |
(...skipping 5250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9727 } else { | 9728 } else { |
9728 value &= ~(1 << bit_position); | 9729 value &= ~(1 << bit_position); |
9729 } | 9730 } |
9730 return value; | 9731 return value; |
9731 } | 9732 } |
9732 }; | 9733 }; |
9733 | 9734 |
9734 } } // namespace v8::internal | 9735 } } // namespace v8::internal |
9735 | 9736 |
9736 #endif // V8_OBJECTS_H_ | 9737 #endif // V8_OBJECTS_H_ |
OLD | NEW |