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

Side by Side Diff: src/runtime.h

Issue 4070003: [Isolates] Convert more static data either to read-only or to per-isolate. (Closed)
Patch Set: Created 10 years, 2 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
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 static const int kNotFound = -1; 537 static const int kNotFound = -1;
538 538
539 // Add symbols for all the intrinsic function names to a StringDictionary. 539 // Add symbols for all the intrinsic function names to a StringDictionary.
540 // Returns failure if an allocation fails. In this case, it must be 540 // Returns failure if an allocation fails. In this case, it must be
541 // retried with a new, empty StringDictionary, not with the same one. 541 // retried with a new, empty StringDictionary, not with the same one.
542 // Alternatively, heap initialization can be completely restarted. 542 // Alternatively, heap initialization can be completely restarted.
543 static Object* InitializeIntrinsicFunctionNames(Heap* heap, 543 static Object* InitializeIntrinsicFunctionNames(Heap* heap,
544 Object* dictionary); 544 Object* dictionary);
545 545
546 // Get the intrinsic function with the given name, which must be a symbol. 546 // Get the intrinsic function with the given name, which must be a symbol.
547 static Function* FunctionForSymbol(Handle<String> name); 547 static const Function* FunctionForSymbol(Handle<String> name);
548 548
549 // Get the intrinsic function with the given FunctionId. 549 // Get the intrinsic function with the given FunctionId.
550 static Function* FunctionForId(FunctionId id); 550 static const Function* FunctionForId(FunctionId id);
551 551
552 // General-purpose helper functions for runtime system. 552 // General-purpose helper functions for runtime system.
553 static int StringMatch(Isolate* isolate, 553 static int StringMatch(Isolate* isolate,
554 Handle<String> sub, 554 Handle<String> sub,
555 Handle<String> pat, 555 Handle<String> pat,
556 int index); 556 int index);
557 557
558 static bool IsUpperCaseChar(RuntimeState* runtime_state, uint16_t ch); 558 static bool IsUpperCaseChar(RuntimeState* runtime_state, uint16_t ch);
559 559
560 // TODO(1240886): The following three methods are *not* handle safe, 560 // TODO(1240886): The following three methods are *not* handle safe,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 Handle<Script> script, 592 Handle<Script> script,
593 int position); 593 int position);
594 594
595 // Helper functions used stubs. 595 // Helper functions used stubs.
596 static void PerformGC(Object* result); 596 static void PerformGC(Object* result);
597 }; 597 };
598 598
599 } } // namespace v8::internal 599 } } // namespace v8::internal
600 600
601 #endif // V8_RUNTIME_H_ 601 #endif // V8_RUNTIME_H_
OLDNEW
« src/frames.h ('K') | « src/profile-generator.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698