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

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

Issue 22831010: Move enum CompilationType from objects.h to include/v8.h, (Closed) Base URL: git://github.com/v8/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
« include/v8.h ('K') | « src/objects.h ('k') | no next file » | 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 4490 matching lines...) Expand 10 before | Expand all | Expand 10 after
4501 ACCESSORS(Script, context_data, Object, kContextOffset) 4501 ACCESSORS(Script, context_data, Object, kContextOffset)
4502 ACCESSORS(Script, wrapper, Foreign, kWrapperOffset) 4502 ACCESSORS(Script, wrapper, Foreign, kWrapperOffset)
4503 ACCESSORS_TO_SMI(Script, type, kTypeOffset) 4503 ACCESSORS_TO_SMI(Script, type, kTypeOffset)
4504 ACCESSORS(Script, line_ends, Object, kLineEndsOffset) 4504 ACCESSORS(Script, line_ends, Object, kLineEndsOffset)
4505 ACCESSORS(Script, eval_from_shared, Object, kEvalFromSharedOffset) 4505 ACCESSORS(Script, eval_from_shared, Object, kEvalFromSharedOffset)
4506 ACCESSORS_TO_SMI(Script, eval_from_instructions_offset, 4506 ACCESSORS_TO_SMI(Script, eval_from_instructions_offset,
4507 kEvalFrominstructionsOffsetOffset) 4507 kEvalFrominstructionsOffsetOffset)
4508 ACCESSORS_TO_SMI(Script, flags, kFlagsOffset) 4508 ACCESSORS_TO_SMI(Script, flags, kFlagsOffset)
4509 BOOL_ACCESSORS(Script, flags, is_shared_cross_origin, kIsSharedCrossOriginBit) 4509 BOOL_ACCESSORS(Script, flags, is_shared_cross_origin, kIsSharedCrossOriginBit)
4510 4510
4511 Script::CompilationType Script::compilation_type() { 4511 v8::Script::CompilationType Script::compilation_type() {
4512 return BooleanBit::get(flags(), kCompilationTypeBit) ? 4512 return BooleanBit::get(flags(), kCompilationTypeBit) ?
4513 COMPILATION_TYPE_EVAL : COMPILATION_TYPE_HOST; 4513 v8::Script::COMPILATION_TYPE_EVAL : v8::Script::COMPILATION_TYPE_HOST;
4514 } 4514 }
4515 void Script::set_compilation_type(CompilationType type) { 4515 void Script::set_compilation_type(v8::Script::CompilationType type) {
4516 set_flags(BooleanBit::set(flags(), kCompilationTypeBit, 4516 set_flags(BooleanBit::set(flags(), kCompilationTypeBit,
4517 type == COMPILATION_TYPE_EVAL)); 4517 type == v8::Script::COMPILATION_TYPE_EVAL));
4518 } 4518 }
4519 Script::CompilationState Script::compilation_state() { 4519 Script::CompilationState Script::compilation_state() {
4520 return BooleanBit::get(flags(), kCompilationStateBit) ? 4520 return BooleanBit::get(flags(), kCompilationStateBit) ?
4521 COMPILATION_STATE_COMPILED : COMPILATION_STATE_INITIAL; 4521 COMPILATION_STATE_COMPILED : COMPILATION_STATE_INITIAL;
4522 } 4522 }
4523 void Script::set_compilation_state(CompilationState state) { 4523 void Script::set_compilation_state(CompilationState state) {
4524 set_flags(BooleanBit::set(flags(), kCompilationStateBit, 4524 set_flags(BooleanBit::set(flags(), kCompilationStateBit,
4525 state == COMPILATION_STATE_COMPILED)); 4525 state == COMPILATION_STATE_COMPILED));
4526 } 4526 }
4527 4527
(...skipping 1716 matching lines...) Expand 10 before | Expand all | Expand 10 after
6244 #undef WRITE_UINT32_FIELD 6244 #undef WRITE_UINT32_FIELD
6245 #undef READ_SHORT_FIELD 6245 #undef READ_SHORT_FIELD
6246 #undef WRITE_SHORT_FIELD 6246 #undef WRITE_SHORT_FIELD
6247 #undef READ_BYTE_FIELD 6247 #undef READ_BYTE_FIELD
6248 #undef WRITE_BYTE_FIELD 6248 #undef WRITE_BYTE_FIELD
6249 6249
6250 6250
6251 } } // namespace v8::internal 6251 } } // namespace v8::internal
6252 6252
6253 #endif // V8_OBJECTS_INL_H_ 6253 #endif // V8_OBJECTS_INL_H_
OLDNEW
« include/v8.h ('K') | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698