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

Side by Side Diff: src/objects.h

Issue 11818052: Fix shared function info code replacement. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments by Hannes Payer. Created 7 years, 11 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 | « src/mark-compact.cc ('k') | src/objects.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 5366 matching lines...) Expand 10 before | Expand all | Expand 10 after
5377 5377
5378 // SharedFunctionInfo describes the JSFunction information that can be 5378 // SharedFunctionInfo describes the JSFunction information that can be
5379 // shared by multiple instances of the function. 5379 // shared by multiple instances of the function.
5380 class SharedFunctionInfo: public HeapObject { 5380 class SharedFunctionInfo: public HeapObject {
5381 public: 5381 public:
5382 // [name]: Function name. 5382 // [name]: Function name.
5383 DECL_ACCESSORS(name, Object) 5383 DECL_ACCESSORS(name, Object)
5384 5384
5385 // [code]: Function code. 5385 // [code]: Function code.
5386 DECL_ACCESSORS(code, Code) 5386 DECL_ACCESSORS(code, Code)
5387 inline void ReplaceCode(Code* code);
5387 5388
5388 // [optimized_code_map]: Map from native context to optimized code 5389 // [optimized_code_map]: Map from native context to optimized code
5389 // and a shared literals array or Smi 0 if none. 5390 // and a shared literals array or Smi 0 if none.
5390 DECL_ACCESSORS(optimized_code_map, Object) 5391 DECL_ACCESSORS(optimized_code_map, Object)
5391 5392
5392 // Returns index i of the entry with the specified context. At position 5393 // Returns index i of the entry with the specified context. At position
5393 // i - 1 is the context, position i the code, and i + 1 the literals array. 5394 // i - 1 is the context, position i the code, and i + 1 the literals array.
5394 // Returns -1 when no matching entry is found. 5395 // Returns -1 when no matching entry is found.
5395 int SearchOptimizedCodeMap(Context* native_context); 5396 int SearchOptimizedCodeMap(Context* native_context);
5396 5397
(...skipping 3420 matching lines...) Expand 10 before | Expand all | Expand 10 after
8817 } else { 8818 } else {
8818 value &= ~(1 << bit_position); 8819 value &= ~(1 << bit_position);
8819 } 8820 }
8820 return value; 8821 return value;
8821 } 8822 }
8822 }; 8823 };
8823 8824
8824 } } // namespace v8::internal 8825 } } // namespace v8::internal
8825 8826
8826 #endif // V8_OBJECTS_H_ 8827 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/mark-compact.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698