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

Side by Side Diff: src/isolate.h

Issue 7062003: Isolates cleanup: get rid of some ugly macros. (Closed)
Patch Set: Created 9 years, 7 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
« no previous file with comments | « src/bootstrapper.h ('k') | src/serialize.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 1353 matching lines...) Expand 10 before | Expand all | Expand 10 after
1364 return global_context()->out_of_memory()->IsTrue(); 1364 return global_context()->out_of_memory()->IsTrue();
1365 } 1365 }
1366 1366
1367 1367
1368 // Mark the global context with out of memory. 1368 // Mark the global context with out of memory.
1369 inline void Context::mark_out_of_memory() { 1369 inline void Context::mark_out_of_memory() {
1370 global_context()->set_out_of_memory(HEAP->true_value()); 1370 global_context()->set_out_of_memory(HEAP->true_value());
1371 } 1371 }
1372 1372
1373 1373
1374 // Temporary macro to be used to flag definitions that are indeed static
1375 // and not per-isolate. (It would be great to be able to grep for [static]!)
1376 #define RLYSTC static
1377
1378
1379 // Temporary macro to be used to flag classes that should be static.
1380 #define STATIC_CLASS class
1381
1382
1383 // Temporary macro to be used to flag classes that are completely converted
1384 // to be isolate-friendly. Their mix of static/nonstatic methods/fields is
1385 // correct.
1386 #define ISOLATED_CLASS class
1387
1388 } } // namespace v8::internal 1374 } } // namespace v8::internal
1389 1375
1390 // TODO(isolates): Get rid of these -inl.h includes and place them only where 1376 // TODO(isolates): Get rid of these -inl.h includes and place them only where
1391 // they're needed. 1377 // they're needed.
1392 #include "allocation-inl.h" 1378 #include "allocation-inl.h"
1393 #include "zone-inl.h" 1379 #include "zone-inl.h"
1394 #include "frames-inl.h" 1380 #include "frames-inl.h"
1395 1381
1396 #endif // V8_ISOLATE_H_ 1382 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.h ('k') | src/serialize.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698