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

Side by Side Diff: src/global-handles.h

Issue 189913023: Use a per-isolate cache for the date object JS bits (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updates Created 6 years, 9 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/date.js ('k') | src/runtime.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 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 333
334 DISALLOW_COPY_AND_ASSIGN(GlobalHandles); 334 DISALLOW_COPY_AND_ASSIGN(GlobalHandles);
335 }; 335 };
336 336
337 337
338 class EternalHandles { 338 class EternalHandles {
339 public: 339 public:
340 enum SingletonHandle { 340 enum SingletonHandle {
341 I18N_TEMPLATE_ONE, 341 I18N_TEMPLATE_ONE,
342 I18N_TEMPLATE_TWO, 342 I18N_TEMPLATE_TWO,
343 DATE_CACHE_VERSION,
343 344
344 NUMBER_OF_SINGLETON_HANDLES 345 NUMBER_OF_SINGLETON_HANDLES
345 }; 346 };
346 347
347 EternalHandles(); 348 EternalHandles();
348 ~EternalHandles(); 349 ~EternalHandles();
349 350
350 int NumberOfHandles() { return size_; } 351 int NumberOfHandles() { return size_; }
351 352
352 // Create an EternalHandle, overwriting the index. 353 // Create an EternalHandle, overwriting the index.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 List<int> new_space_indices_; 401 List<int> new_space_indices_;
401 int singleton_handles_[NUMBER_OF_SINGLETON_HANDLES]; 402 int singleton_handles_[NUMBER_OF_SINGLETON_HANDLES];
402 403
403 DISALLOW_COPY_AND_ASSIGN(EternalHandles); 404 DISALLOW_COPY_AND_ASSIGN(EternalHandles);
404 }; 405 };
405 406
406 407
407 } } // namespace v8::internal 408 } } // namespace v8::internal
408 409
409 #endif // V8_GLOBAL_HANDLES_H_ 410 #endif // V8_GLOBAL_HANDLES_H_
OLDNEW
« no previous file with comments | « src/date.js ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698