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

Side by Side Diff: src/objects-inl.h

Issue 20646006: Pipe a script's CORS status through V8 during compilation. (Closed) Base URL: https://chromium.googlesource.com/external/v8.git@master
Patch Set: . Created 7 years, 4 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/objects.h ('k') | test/cctest/test-api.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 4469 matching lines...) Expand 10 before | Expand all | Expand 10 after
4480 ACCESSORS_TO_SMI(Script, column_offset, kColumnOffsetOffset) 4480 ACCESSORS_TO_SMI(Script, column_offset, kColumnOffsetOffset)
4481 ACCESSORS(Script, data, Object, kDataOffset) 4481 ACCESSORS(Script, data, Object, kDataOffset)
4482 ACCESSORS(Script, context_data, Object, kContextOffset) 4482 ACCESSORS(Script, context_data, Object, kContextOffset)
4483 ACCESSORS(Script, wrapper, Foreign, kWrapperOffset) 4483 ACCESSORS(Script, wrapper, Foreign, kWrapperOffset)
4484 ACCESSORS_TO_SMI(Script, type, kTypeOffset) 4484 ACCESSORS_TO_SMI(Script, type, kTypeOffset)
4485 ACCESSORS(Script, line_ends, Object, kLineEndsOffset) 4485 ACCESSORS(Script, line_ends, Object, kLineEndsOffset)
4486 ACCESSORS(Script, eval_from_shared, Object, kEvalFromSharedOffset) 4486 ACCESSORS(Script, eval_from_shared, Object, kEvalFromSharedOffset)
4487 ACCESSORS_TO_SMI(Script, eval_from_instructions_offset, 4487 ACCESSORS_TO_SMI(Script, eval_from_instructions_offset,
4488 kEvalFrominstructionsOffsetOffset) 4488 kEvalFrominstructionsOffsetOffset)
4489 ACCESSORS_TO_SMI(Script, flags, kFlagsOffset) 4489 ACCESSORS_TO_SMI(Script, flags, kFlagsOffset)
4490 BOOL_ACCESSORS(Script, flags, is_shared_cross_origin, kIsSharedCrossOriginBit)
4490 4491
4491 Script::CompilationType Script::compilation_type() { 4492 Script::CompilationType Script::compilation_type() {
4492 return BooleanBit::get(flags(), kCompilationTypeBit) ? 4493 return BooleanBit::get(flags(), kCompilationTypeBit) ?
4493 COMPILATION_TYPE_EVAL : COMPILATION_TYPE_HOST; 4494 COMPILATION_TYPE_EVAL : COMPILATION_TYPE_HOST;
4494 } 4495 }
4495 void Script::set_compilation_type(CompilationType type) { 4496 void Script::set_compilation_type(CompilationType type) {
4496 set_flags(BooleanBit::set(flags(), kCompilationTypeBit, 4497 set_flags(BooleanBit::set(flags(), kCompilationTypeBit,
4497 type == COMPILATION_TYPE_EVAL)); 4498 type == COMPILATION_TYPE_EVAL));
4498 } 4499 }
4499 Script::CompilationState Script::compilation_state() { 4500 Script::CompilationState Script::compilation_state() {
(...skipping 1724 matching lines...) Expand 10 before | Expand all | Expand 10 after
6224 #undef WRITE_UINT32_FIELD 6225 #undef WRITE_UINT32_FIELD
6225 #undef READ_SHORT_FIELD 6226 #undef READ_SHORT_FIELD
6226 #undef WRITE_SHORT_FIELD 6227 #undef WRITE_SHORT_FIELD
6227 #undef READ_BYTE_FIELD 6228 #undef READ_BYTE_FIELD
6228 #undef WRITE_BYTE_FIELD 6229 #undef WRITE_BYTE_FIELD
6229 6230
6230 6231
6231 } } // namespace v8::internal 6232 } } // namespace v8::internal
6232 6233
6233 #endif // V8_OBJECTS_INL_H_ 6234 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | test/cctest/test-api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698