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

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

Issue 188783003: Make maps in monomorphic IC stubs weak. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase, address comments 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 | « no previous file | src/code-stubs.cc » ('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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 // Returns whether the code generated for this stub needs to be allocated as 221 // Returns whether the code generated for this stub needs to be allocated as
222 // a fixed (non-moveable) code object. 222 // a fixed (non-moveable) code object.
223 virtual bool NeedsImmovableCode() { return false; } 223 virtual bool NeedsImmovableCode() { return false; }
224 224
225 virtual void PrintBaseName(StringStream* stream); 225 virtual void PrintBaseName(StringStream* stream);
226 virtual void PrintState(StringStream* stream) { } 226 virtual void PrintState(StringStream* stream) { }
227 227
228 private: 228 private:
229 // Perform bookkeeping required after code generation when stub code is 229 // Perform bookkeeping required after code generation when stub code is
230 // initially generated. 230 // initially generated.
231 void RecordCodeGeneration(Code* code, Isolate* isolate); 231 void RecordCodeGeneration(Handle<Code> code, Isolate* isolate);
232 232
233 // Finish the code object after it has been generated. 233 // Finish the code object after it has been generated.
234 virtual void FinishCode(Handle<Code> code) { } 234 virtual void FinishCode(Handle<Code> code) { }
235 235
236 // Activate newly generated stub. Is called after 236 // Activate newly generated stub. Is called after
237 // registering stub in the stub cache. 237 // registering stub in the stub cache.
238 virtual void Activate(Code* code) { } 238 virtual void Activate(Code* code) { }
239 239
240 // BinaryOpStub needs to override this. 240 // BinaryOpStub needs to override this.
241 virtual Code::Kind GetCodeKind() const; 241 virtual Code::Kind GetCodeKind() const;
(...skipping 2282 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 | « no previous file | src/code-stubs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698