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

Unified Diff: src/ast/ast-value-factory.cc

Issue 1439693002: [runtime] Support Proxy setPrototypeOf trap (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@2015-11-09_new_Proxy_1417063011
Patch Set: merging with master Created 5 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ast/ast-value-factory.h ('k') | src/ast/modules.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/ast-value-factory.cc
diff --git a/src/ast/ast-value-factory.cc b/src/ast/ast-value-factory.cc
index 2e17fbcfafdedbd023d89addbebd7cbea49a39b0..5af35aeee5101eb6a81bb61a211f69d176e20c67 100644
--- a/src/ast/ast-value-factory.cc
+++ b/src/ast/ast-value-factory.cc
@@ -39,8 +39,8 @@ namespace {
// For using StringToArrayIndex.
class OneByteStringStream {
public:
- explicit OneByteStringStream(Vector<const byte> lb) :
- literal_bytes_(lb), pos_(0) {}
+ explicit OneByteStringStream(Vector<const byte> lb)
+ : literal_bytes_(lb), pos_(0) {}
bool HasMore() { return pos_ < literal_bytes_.length(); }
uint16_t GetNext() { return literal_bytes_[pos_++]; }
@@ -95,8 +95,7 @@ void AstRawString::Internalize(Isolate* isolate) {
bool AstRawString::AsArrayIndex(uint32_t* index) const {
- if (!string_.is_null())
- return string_->AsArrayIndex(index);
+ if (!string_.is_null()) return string_->AsArrayIndex(index);
if (!is_one_byte_ || literal_bytes_.length() == 0 ||
literal_bytes_.length() > String::kMaxArrayIndexSize)
return false;
@@ -242,8 +241,8 @@ const AstRawString* AstValueFactory::GetString(Handle<String> literal) {
}
-const AstConsString* AstValueFactory::NewConsString(
- const AstString* left, const AstString* right) {
+const AstConsString* AstValueFactory::NewConsString(const AstString* left,
+ const AstString* right) {
// This Vector will be valid as long as the Collector is alive (meaning that
// the AstRawString will not be moved).
AstConsString* new_string = new (zone_) AstConsString(left, right);
@@ -304,8 +303,7 @@ const AstValue* AstValueFactory::NewNumber(double number, bool with_dot) {
const AstValue* AstValueFactory::NewSmi(int number) {
- AstValue* value =
- new (zone_) AstValue(AstValue::SMI, number);
+ AstValue* value = new (zone_) AstValue(AstValue::SMI, number);
if (isolate_) {
value->Internalize(isolate_);
}
« no previous file with comments | « src/ast/ast-value-factory.h ('k') | src/ast/modules.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698