OLD | NEW |
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 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
921 | 921 |
922 | 922 |
923 Handle<SharedFunctionInfo> Compiler::CompileScript( | 923 Handle<SharedFunctionInfo> Compiler::CompileScript( |
924 Handle<String> source, | 924 Handle<String> source, |
925 Handle<Object> script_name, | 925 Handle<Object> script_name, |
926 int line_offset, | 926 int line_offset, |
927 int column_offset, | 927 int column_offset, |
928 bool is_shared_cross_origin, | 928 bool is_shared_cross_origin, |
929 Handle<Context> context, | 929 Handle<Context> context, |
930 v8::Extension* extension, | 930 v8::Extension* extension, |
931 ScriptDataImpl** cached_data, | 931 ScriptData** cached_data, |
932 CachedDataMode cached_data_mode, | 932 CachedDataMode cached_data_mode, |
933 NativesFlag natives) { | 933 NativesFlag natives) { |
934 if (cached_data_mode == NO_CACHED_DATA) { | 934 if (cached_data_mode == NO_CACHED_DATA) { |
935 cached_data = NULL; | 935 cached_data = NULL; |
936 } else if (cached_data_mode == PRODUCE_CACHED_DATA) { | 936 } else if (cached_data_mode == PRODUCE_CACHED_DATA) { |
937 ASSERT(cached_data && !*cached_data); | 937 ASSERT(cached_data && !*cached_data); |
938 } else { | 938 } else { |
939 ASSERT(cached_data_mode == CONSUME_CACHED_DATA); | 939 ASSERT(cached_data_mode == CONSUME_CACHED_DATA); |
940 ASSERT(cached_data && *cached_data); | 940 ASSERT(cached_data && *cached_data); |
941 } | 941 } |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1302 AllowHandleDereference allow_deref; | 1302 AllowHandleDereference allow_deref; |
1303 bool tracing_on = info()->IsStub() | 1303 bool tracing_on = info()->IsStub() |
1304 ? FLAG_trace_hydrogen_stubs | 1304 ? FLAG_trace_hydrogen_stubs |
1305 : (FLAG_trace_hydrogen && | 1305 : (FLAG_trace_hydrogen && |
1306 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); | 1306 info()->closure()->PassesFilter(FLAG_trace_hydrogen_filter)); |
1307 return (tracing_on && | 1307 return (tracing_on && |
1308 OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL); | 1308 OS::StrChr(const_cast<char*>(FLAG_trace_phase), name_[0]) != NULL); |
1309 } | 1309 } |
1310 | 1310 |
1311 } } // namespace v8::internal | 1311 } } // namespace v8::internal |
OLD | NEW |