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 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1194 class BinaryOpICWithAllocationSiteStub V8_FINAL : public PlatformCodeStub { | 1194 class BinaryOpICWithAllocationSiteStub V8_FINAL : public PlatformCodeStub { |
1195 public: | 1195 public: |
1196 explicit BinaryOpICWithAllocationSiteStub(const BinaryOpIC::State& state) | 1196 explicit BinaryOpICWithAllocationSiteStub(const BinaryOpIC::State& state) |
1197 : state_(state) {} | 1197 : state_(state) {} |
1198 | 1198 |
1199 static void GenerateAheadOfTime(Isolate* isolate); | 1199 static void GenerateAheadOfTime(Isolate* isolate); |
1200 | 1200 |
1201 Handle<Code> GetCodeCopyFromTemplate(Isolate* isolate, | 1201 Handle<Code> GetCodeCopyFromTemplate(Isolate* isolate, |
1202 Handle<AllocationSite> allocation_site) { | 1202 Handle<AllocationSite> allocation_site) { |
1203 Code::FindAndReplacePattern pattern; | 1203 Code::FindAndReplacePattern pattern; |
1204 pattern.Add(isolate->factory()->oddball_map(), allocation_site); | 1204 pattern.Add(isolate->factory()->undefined_map(), allocation_site); |
1205 return CodeStub::GetCodeCopy(isolate, pattern); | 1205 return CodeStub::GetCodeCopy(isolate, pattern); |
1206 } | 1206 } |
1207 | 1207 |
1208 virtual Code::Kind GetCodeKind() const V8_OVERRIDE { | 1208 virtual Code::Kind GetCodeKind() const V8_OVERRIDE { |
1209 return Code::BINARY_OP_IC; | 1209 return Code::BINARY_OP_IC; |
1210 } | 1210 } |
1211 | 1211 |
1212 virtual InlineCacheState GetICState() V8_OVERRIDE { | 1212 virtual InlineCacheState GetICState() V8_OVERRIDE { |
1213 return state_.GetICState(); | 1213 return state_.GetICState(); |
1214 } | 1214 } |
(...skipping 1309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2524 | 2524 |
2525 | 2525 |
2526 class CallDescriptors { | 2526 class CallDescriptors { |
2527 public: | 2527 public: |
2528 static void InitializeForIsolate(Isolate* isolate); | 2528 static void InitializeForIsolate(Isolate* isolate); |
2529 }; | 2529 }; |
2530 | 2530 |
2531 } } // namespace v8::internal | 2531 } } // namespace v8::internal |
2532 | 2532 |
2533 #endif // V8_CODE_STUBS_H_ | 2533 #endif // V8_CODE_STUBS_H_ |
OLD | NEW |