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 4234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4245 enum StubType { | 4245 enum StubType { |
4246 NORMAL, | 4246 NORMAL, |
4247 FIELD, | 4247 FIELD, |
4248 CONSTANT_FUNCTION, | 4248 CONSTANT_FUNCTION, |
4249 CALLBACKS, | 4249 CALLBACKS, |
4250 INTERCEPTOR, | 4250 INTERCEPTOR, |
4251 MAP_TRANSITION, | 4251 MAP_TRANSITION, |
4252 NONEXISTENT | 4252 NONEXISTENT |
4253 }; | 4253 }; |
4254 | 4254 |
| 4255 enum IcFragment { |
| 4256 IC_FRAGMENT, |
| 4257 HANDLER_FRAGMENT |
| 4258 }; |
| 4259 |
4255 enum { | 4260 enum { |
4256 NUMBER_OF_KINDS = LAST_IC_KIND + 1 | 4261 NUMBER_OF_KINDS = LAST_IC_KIND + 1 |
4257 }; | 4262 }; |
4258 | 4263 |
4259 typedef int ExtraICState; | 4264 typedef int ExtraICState; |
4260 | 4265 |
4261 static const ExtraICState kNoExtraICState = 0; | 4266 static const ExtraICState kNoExtraICState = 0; |
4262 | 4267 |
4263 #ifdef ENABLE_DISASSEMBLER | 4268 #ifdef ENABLE_DISASSEMBLER |
4264 // Printing | 4269 // Printing |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4427 | 4432 |
4428 // Get the safepoint entry for the given pc. | 4433 // Get the safepoint entry for the given pc. |
4429 SafepointEntry GetSafepointEntry(Address pc); | 4434 SafepointEntry GetSafepointEntry(Address pc); |
4430 | 4435 |
4431 // Mark this code object as not having a stack check table. Assumes kind | 4436 // Mark this code object as not having a stack check table. Assumes kind |
4432 // is FUNCTION. | 4437 // is FUNCTION. |
4433 void SetNoStackCheckTable(); | 4438 void SetNoStackCheckTable(); |
4434 | 4439 |
4435 // Find the first map in an IC stub. | 4440 // Find the first map in an IC stub. |
4436 Map* FindFirstMap(); | 4441 Map* FindFirstMap(); |
| 4442 void FindAllMaps(MapHandleList* maps); |
| 4443 |
| 4444 // Find the first code in an IC stub. |
| 4445 Code* FindFirstCode(); |
| 4446 void FindAllCode(CodeHandleList* code_list, int length); |
4437 | 4447 |
4438 class ExtraICStateStrictMode: public BitField<StrictModeFlag, 0, 1> {}; | 4448 class ExtraICStateStrictMode: public BitField<StrictModeFlag, 0, 1> {}; |
4439 class ExtraICStateKeyedAccessGrowMode: | 4449 class ExtraICStateKeyedAccessGrowMode: |
4440 public BitField<KeyedAccessGrowMode, 1, 1> {}; // NOLINT | 4450 public BitField<KeyedAccessGrowMode, 1, 1> {}; // NOLINT |
4441 | 4451 |
4442 static const int kExtraICStateGrowModeShift = 1; | 4452 static const int kExtraICStateGrowModeShift = 1; |
4443 | 4453 |
4444 static inline StrictModeFlag GetStrictMode(ExtraICState extra_ic_state) { | 4454 static inline StrictModeFlag GetStrictMode(ExtraICState extra_ic_state) { |
4445 return ExtraICStateStrictMode::decode(extra_ic_state); | 4455 return ExtraICStateStrictMode::decode(extra_ic_state); |
4446 } | 4456 } |
(...skipping 4569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9016 } else { | 9026 } else { |
9017 value &= ~(1 << bit_position); | 9027 value &= ~(1 << bit_position); |
9018 } | 9028 } |
9019 return value; | 9029 return value; |
9020 } | 9030 } |
9021 }; | 9031 }; |
9022 | 9032 |
9023 } } // namespace v8::internal | 9033 } } // namespace v8::internal |
9024 | 9034 |
9025 #endif // V8_OBJECTS_H_ | 9035 #endif // V8_OBJECTS_H_ |
OLD | NEW |