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 6524006: Strict mode function entry (Function.prototype.call/apply) (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 10 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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 4369 matching lines...) Expand 10 before | Expand all | Expand 10 after
4380 static const int kStartPositionMask = ~((1 << kStartPositionShift) - 1); 4380 static const int kStartPositionMask = ~((1 << kStartPositionShift) - 1);
4381 4381
4382 // Bit positions in compiler_hints. 4382 // Bit positions in compiler_hints.
4383 static const int kHasOnlySimpleThisPropertyAssignments = 0; 4383 static const int kHasOnlySimpleThisPropertyAssignments = 0;
4384 static const int kTryFullCodegen = 1; 4384 static const int kTryFullCodegen = 1;
4385 static const int kAllowLazyCompilation = 2; 4385 static const int kAllowLazyCompilation = 2;
4386 static const int kLiveObjectsMayExist = 3; 4386 static const int kLiveObjectsMayExist = 3;
4387 static const int kCodeAgeShift = 4; 4387 static const int kCodeAgeShift = 4;
4388 static const int kCodeAgeMask = 0x7; 4388 static const int kCodeAgeMask = 0x7;
4389 static const int kOptimizationDisabled = 7; 4389 static const int kOptimizationDisabled = 7;
4390 public:
Mads Ager (chromium) 2011/02/15 08:09:31 I would rather make Builtins a friend or make them
Martin Maly 2011/02/15 19:18:43 Done.
4391 // Used from builtins-<arch>.cc Generate_Function(Call/Apply).
4390 static const int kStrictModeFunction = 8; 4392 static const int kStrictModeFunction = 8;
4391 4393
4394 private:
4392 DISALLOW_IMPLICIT_CONSTRUCTORS(SharedFunctionInfo); 4395 DISALLOW_IMPLICIT_CONSTRUCTORS(SharedFunctionInfo);
4393 }; 4396 };
4394 4397
4395 4398
4396 // JSFunction describes JavaScript functions. 4399 // JSFunction describes JavaScript functions.
4397 class JSFunction: public JSObject { 4400 class JSFunction: public JSObject {
4398 public: 4401 public:
4399 // [prototype_or_initial_map]: 4402 // [prototype_or_initial_map]:
4400 DECL_ACCESSORS(prototype_or_initial_map, Object) 4403 DECL_ACCESSORS(prototype_or_initial_map, Object)
4401 4404
(...skipping 2123 matching lines...) Expand 10 before | Expand all | Expand 10 after
6525 } else { 6528 } else {
6526 value &= ~(1 << bit_position); 6529 value &= ~(1 << bit_position);
6527 } 6530 }
6528 return value; 6531 return value;
6529 } 6532 }
6530 }; 6533 };
6531 6534
6532 } } // namespace v8::internal 6535 } } // namespace v8::internal
6533 6536
6534 #endif // V8_OBJECTS_H_ 6537 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698