| 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 4217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4228 }; | 4228 }; |
| 4229 | 4229 |
| 4230 enum { | 4230 enum { |
| 4231 NUMBER_OF_KINDS = LAST_IC_KIND + 1 | 4231 NUMBER_OF_KINDS = LAST_IC_KIND + 1 |
| 4232 }; | 4232 }; |
| 4233 | 4233 |
| 4234 typedef int ExtraICState; | 4234 typedef int ExtraICState; |
| 4235 | 4235 |
| 4236 static const ExtraICState kNoExtraICState = 0; | 4236 static const ExtraICState kNoExtraICState = 0; |
| 4237 | 4237 |
| 4238 typedef enum { |
| 4239 ExtraICStateForeignCallbackNone = kNoExtraICState, |
| 4240 ExtraICStateForeignCallbackArrayLength |
| 4241 } ExtraICStateForeignCallback; |
| 4242 |
| 4238 #ifdef ENABLE_DISASSEMBLER | 4243 #ifdef ENABLE_DISASSEMBLER |
| 4239 // Printing | 4244 // Printing |
| 4240 static const char* Kind2String(Kind kind); | 4245 static const char* Kind2String(Kind kind); |
| 4241 static const char* ICState2String(InlineCacheState state); | 4246 static const char* ICState2String(InlineCacheState state); |
| 4242 static const char* StubType2String(StubType type); | 4247 static const char* StubType2String(StubType type); |
| 4243 static void PrintExtraICState(FILE* out, Kind kind, ExtraICState extra); | 4248 static void PrintExtraICState(FILE* out, Kind kind, ExtraICState extra); |
| 4244 inline void Disassemble(const char* name) { | 4249 inline void Disassemble(const char* name) { |
| 4245 Disassemble(name, stdout); | 4250 Disassemble(name, stdout); |
| 4246 } | 4251 } |
| 4247 void Disassemble(const char* name, FILE* out); | 4252 void Disassemble(const char* name, FILE* out); |
| (...skipping 4707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8955 } else { | 8960 } else { |
| 8956 value &= ~(1 << bit_position); | 8961 value &= ~(1 << bit_position); |
| 8957 } | 8962 } |
| 8958 return value; | 8963 return value; |
| 8959 } | 8964 } |
| 8960 }; | 8965 }; |
| 8961 | 8966 |
| 8962 } } // namespace v8::internal | 8967 } } // namespace v8::internal |
| 8963 | 8968 |
| 8964 #endif // V8_OBJECTS_H_ | 8969 #endif // V8_OBJECTS_H_ |
| OLD | NEW |