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

Side by Side Diff: src/isolate.cc

Issue 894683003: Introduce LanguageMode, drop StrictMode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebased (w/ conflicts) Created 5 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
« no previous file with comments | « src/ic/x64/ic-x64.cc ('k') | src/objects.h » ('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 // 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 #include <stdlib.h> 5 #include <stdlib.h>
6 6
7 #include <fstream> // NOLINT(readability/streams) 7 #include <fstream> // NOLINT(readability/streams)
8 #include <sstream> 8 #include <sstream>
9 9
10 #include "src/v8.h" 10 #include "src/v8.h"
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 } 397 }
398 DCHECK(cursor + 4 <= elements->length()); 398 DCHECK(cursor + 4 <= elements->length());
399 399
400 Handle<Code> code = frames[i].code(); 400 Handle<Code> code = frames[i].code();
401 Handle<Smi> offset(Smi::FromInt(frames[i].offset()), this); 401 Handle<Smi> offset(Smi::FromInt(frames[i].offset()), this);
402 // The stack trace API should not expose receivers and function 402 // The stack trace API should not expose receivers and function
403 // objects on frames deeper than the top-most one with a strict 403 // objects on frames deeper than the top-most one with a strict
404 // mode function. The number of sloppy frames is stored as 404 // mode function. The number of sloppy frames is stored as
405 // first element in the result array. 405 // first element in the result array.
406 if (!encountered_strict_function) { 406 if (!encountered_strict_function) {
407 if (fun->shared()->strict_mode() == STRICT) { 407 if (is_strict(fun->shared()->language_mode())) {
408 encountered_strict_function = true; 408 encountered_strict_function = true;
409 } else { 409 } else {
410 sloppy_frames++; 410 sloppy_frames++;
411 } 411 }
412 } 412 }
413 elements->set(cursor++, *recv); 413 elements->set(cursor++, *recv);
414 elements->set(cursor++, *fun); 414 elements->set(cursor++, *fun);
415 elements->set(cursor++, *code); 415 elements->set(cursor++, *code);
416 elements->set(cursor++, *offset); 416 elements->set(cursor++, *offset);
417 frames_seen++; 417 frames_seen++;
(...skipping 2167 matching lines...) Expand 10 before | Expand all | Expand 10 after
2585 if (prev_ && prev_->Intercept(flag)) return true; 2585 if (prev_ && prev_->Intercept(flag)) return true;
2586 // Then check whether this scope intercepts. 2586 // Then check whether this scope intercepts.
2587 if ((flag & intercept_mask_)) { 2587 if ((flag & intercept_mask_)) {
2588 intercepted_flags_ |= flag; 2588 intercepted_flags_ |= flag;
2589 return true; 2589 return true;
2590 } 2590 }
2591 return false; 2591 return false;
2592 } 2592 }
2593 2593
2594 } } // namespace v8::internal 2594 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ic/x64/ic-x64.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698