Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(550)

Side by Side Diff: src/code-stubs.h

Issue 227473002: Use distinct maps for oddballs with special handling in the type system. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Put kInternal last. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « include/v8.h ('k') | src/heap.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698