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

Side by Side Diff: src/runtime.h

Issue 214473003: Reland "Correctly OOM in the CEntryStub after retries." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: fix 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/mips/code-stubs-mips.cc ('k') | src/runtime.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 877 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 }; 888 };
889 889
890 static void ArrayIdToTypeAndSize(int array_id, 890 static void ArrayIdToTypeAndSize(int array_id,
891 ExternalArrayType *type, 891 ExternalArrayType *type,
892 ElementsKind* external_elements_kind, 892 ElementsKind* external_elements_kind,
893 ElementsKind* fixed_elements_kind, 893 ElementsKind* fixed_elements_kind,
894 size_t *element_size); 894 size_t *element_size);
895 895
896 // Helper functions used stubs. 896 // Helper functions used stubs.
897 static void PerformGC(Object* result, Isolate* isolate); 897 static void PerformGC(Object* result, Isolate* isolate);
898 static void OutOfMemory();
898 899
899 // Used in runtime.cc and hydrogen's VisitArrayLiteral. 900 // Used in runtime.cc and hydrogen's VisitArrayLiteral.
900 static Handle<Object> CreateArrayLiteralBoilerplate( 901 static Handle<Object> CreateArrayLiteralBoilerplate(
901 Isolate* isolate, 902 Isolate* isolate,
902 Handle<FixedArray> literals, 903 Handle<FixedArray> literals,
903 Handle<FixedArray> elements); 904 Handle<FixedArray> elements);
904 }; 905 };
905 906
906 907
907 //--------------------------------------------------------------------------- 908 //---------------------------------------------------------------------------
908 // Constants used by interface to runtime functions. 909 // Constants used by interface to runtime functions.
909 910
910 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {}; 911 class AllocateDoubleAlignFlag: public BitField<bool, 0, 1> {};
911 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {}; 912 class AllocateTargetSpace: public BitField<AllocationSpace, 1, 3> {};
912 913
913 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {}; 914 class DeclareGlobalsEvalFlag: public BitField<bool, 0, 1> {};
914 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {}; 915 class DeclareGlobalsNativeFlag: public BitField<bool, 1, 1> {};
915 class DeclareGlobalsStrictMode: public BitField<StrictMode, 2, 1> {}; 916 class DeclareGlobalsStrictMode: public BitField<StrictMode, 2, 1> {};
916 917
917 } } // namespace v8::internal 918 } } // namespace v8::internal
918 919
919 #endif // V8_RUNTIME_H_ 920 #endif // V8_RUNTIME_H_
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698