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

Side by Side Diff: src/heap.h

Issue 12338002: Forced inlining of some GC-related methods. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 10 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/mark-compact.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 1355 matching lines...) Expand 10 before | Expand all | Expand 10 after
1366 1366
1367 // Makes a new symbol object 1367 // Makes a new symbol object
1368 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 1368 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
1369 // failed. 1369 // failed.
1370 // Please note this function does not perform a garbage collection. 1370 // Please note this function does not perform a garbage collection.
1371 MUST_USE_RESULT MaybeObject* CreateSymbol( 1371 MUST_USE_RESULT MaybeObject* CreateSymbol(
1372 const char* str, int length, int hash); 1372 const char* str, int length, int hash);
1373 MUST_USE_RESULT MaybeObject* CreateSymbol(String* str); 1373 MUST_USE_RESULT MaybeObject* CreateSymbol(String* str);
1374 1374
1375 // Write barrier support for address[offset] = o. 1375 // Write barrier support for address[offset] = o.
1376 inline void RecordWrite(Address address, int offset); 1376 INLINE(void RecordWrite(Address address, int offset));
1377 1377
1378 // Write barrier support for address[start : start + len[ = o. 1378 // Write barrier support for address[start : start + len[ = o.
1379 inline void RecordWrites(Address address, int start, int len); 1379 INLINE(void RecordWrites(Address address, int start, int len));
1380 1380
1381 // Given an address occupied by a live code object, return that object. 1381 // Given an address occupied by a live code object, return that object.
1382 Object* FindCodeObject(Address a); 1382 Object* FindCodeObject(Address a);
1383 1383
1384 // Invoke Shrink on shrinkable spaces. 1384 // Invoke Shrink on shrinkable spaces.
1385 void Shrink(); 1385 void Shrink();
1386 1386
1387 enum HeapState { NOT_IN_GC, SCAVENGE, MARK_COMPACT }; 1387 enum HeapState { NOT_IN_GC, SCAVENGE, MARK_COMPACT };
1388 inline HeapState gc_state() { return gc_state_; } 1388 inline HeapState gc_state() { return gc_state_; }
1389 1389
(...skipping 1555 matching lines...) Expand 10 before | Expand all | Expand 10 after
2945 AssertNoAllocation no_alloc; // i.e. no gc allowed. 2945 AssertNoAllocation no_alloc; // i.e. no gc allowed.
2946 2946
2947 private: 2947 private:
2948 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2948 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2949 }; 2949 };
2950 #endif // DEBUG 2950 #endif // DEBUG
2951 2951
2952 } } // namespace v8::internal 2952 } } // namespace v8::internal
2953 2953
2954 #endif // V8_HEAP_H_ 2954 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/mark-compact.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698