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

Side by Side Diff: src/objects.h

Issue 477263002: ES6: Add support for method shorthand in object literals (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add strict formal param checking Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/assert-scope.h" 9 #include "src/assert-scope.h"
10 #include "src/builtins.h" 10 #include "src/builtins.h"
(...skipping 7190 matching lines...) Expand 10 before | Expand all | Expand 10 after
7201 7201
7202 // Indicates that code for this function cannot be flushed. 7202 // Indicates that code for this function cannot be flushed.
7203 DECL_BOOLEAN_ACCESSORS(dont_flush) 7203 DECL_BOOLEAN_ACCESSORS(dont_flush)
7204 7204
7205 // Indicates that this function is a generator. 7205 // Indicates that this function is a generator.
7206 DECL_BOOLEAN_ACCESSORS(is_generator) 7206 DECL_BOOLEAN_ACCESSORS(is_generator)
7207 7207
7208 // Indicates that this function is an arrow function. 7208 // Indicates that this function is an arrow function.
7209 DECL_BOOLEAN_ACCESSORS(is_arrow) 7209 DECL_BOOLEAN_ACCESSORS(is_arrow)
7210 7210
7211 // Indicates that this function is a concise method.
7212 DECL_BOOLEAN_ACCESSORS(is_concise_method)
7213
7211 // Indicates whether or not the code in the shared function support 7214 // Indicates whether or not the code in the shared function support
7212 // deoptimization. 7215 // deoptimization.
7213 inline bool has_deoptimization_support(); 7216 inline bool has_deoptimization_support();
7214 7217
7215 // Enable deoptimization support through recompiled code. 7218 // Enable deoptimization support through recompiled code.
7216 void EnableDeoptimizationSupport(Code* recompiled); 7219 void EnableDeoptimizationSupport(Code* recompiled);
7217 7220
7218 // Disable (further) attempted optimization of all functions sharing this 7221 // Disable (further) attempted optimization of all functions sharing this
7219 // shared function info. 7222 // shared function info.
7220 void DisableOptimization(BailoutReason reason); 7223 void DisableOptimization(BailoutReason reason);
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
7397 kNative, 7400 kNative,
7398 kInlineBuiltin, 7401 kInlineBuiltin,
7399 kBoundFunction, 7402 kBoundFunction,
7400 kIsAnonymous, 7403 kIsAnonymous,
7401 kNameShouldPrintAsAnonymous, 7404 kNameShouldPrintAsAnonymous,
7402 kIsFunction, 7405 kIsFunction,
7403 kDontCache, 7406 kDontCache,
7404 kDontFlush, 7407 kDontFlush,
7405 kIsGenerator, 7408 kIsGenerator,
7406 kIsArrow, 7409 kIsArrow,
7410 kIsConciseMethod,
7407 kCompilerHintsCount // Pseudo entry 7411 kCompilerHintsCount // Pseudo entry
7408 }; 7412 };
7409 7413
7410 class DeoptCountBits: public BitField<int, 0, 4> {}; 7414 class DeoptCountBits: public BitField<int, 0, 4> {};
7411 class OptReenableTriesBits: public BitField<int, 4, 18> {}; 7415 class OptReenableTriesBits: public BitField<int, 4, 18> {};
7412 class ICAgeBits: public BitField<int, 22, 8> {}; 7416 class ICAgeBits: public BitField<int, 22, 8> {};
7413 7417
7414 class OptCountBits: public BitField<int, 0, 22> {}; 7418 class OptCountBits: public BitField<int, 0, 22> {};
7415 class DisabledOptimizationReasonBits: public BitField<int, 22, 8> {}; 7419 class DisabledOptimizationReasonBits: public BitField<int, 22, 8> {};
7416 7420
(...skipping 3781 matching lines...) Expand 10 before | Expand all | Expand 10 after
11198 } else { 11202 } else {
11199 value &= ~(1 << bit_position); 11203 value &= ~(1 << bit_position);
11200 } 11204 }
11201 return value; 11205 return value;
11202 } 11206 }
11203 }; 11207 };
11204 11208
11205 } } // namespace v8::internal 11209 } } // namespace v8::internal
11206 11210
11207 #endif // V8_OBJECTS_H_ 11211 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/mips64/lithium-codegen-mips64.cc ('k') | src/objects-inl.h » ('j') | src/parser.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698